this line of code from this github is from the minecraft source code and I would like to know what it is or what it means and this seemed like the best place to ask this question. Please use layman's terms to the best of your ability as I do not understand coding too well.
Give the complete file and I may figure it out for you...
Rollback Post to RevisionRollBack
97% of teenagers would cry if they saw Justin Bieber on top of a tower about to jump. If your the 3% who is sitting there with popcorn screaming "DO A BACKFLIP!", copy and paste this as your signature.
It appears to be a chunk of Minecraft / Forge network code, which obtains the 'Packet ID' for a 'Packet'.
Packet = essentially some data sent between client/server.
Packet ID = used to work out what packet is being send / received and trigger the correct action on the server/client
(e.g. Player hits block, Packet tells the server, the server breaks the block)
I think it would be easier if you let us know why you NEED to know what it does.
Network Code is very complex and versatile, so you shouldn't need to do anything like this and whatever you want to do shouldn't require you to understand it.
Integer integer = ((EnumConnectionState)p_encode_1_.channel().attr(NetworkManager.PROTOCOL_ATTRIBUTE_KEY).get()).getPacketId(this.direction, p_encode_2_);
this line of code from this github is from the minecraft source code and I would like to know what it is or what it means and this seemed like the best place to ask this question. Please use layman's terms to the best of your ability as I do not understand coding too well.
The best i can give you from this is that its converting from enum state and enum direction to id which is an integer of that state.
Anything else i can't really figure out because of the the decompiled code obfuscating.
Give the complete file and I may figure it out for you...
97% of teenagers would cry if they saw Justin Bieber on top of a tower about to jump. If your the 3% who is sitting there with popcorn screaming "DO A BACKFLIP!", copy and paste this as your signature.
It appears to be a chunk of Minecraft / Forge network code, which obtains the 'Packet ID' for a 'Packet'.
Packet = essentially some data sent between client/server.
Packet ID = used to work out what packet is being send / received and trigger the correct action on the server/client
(e.g. Player hits block, Packet tells the server, the server breaks the block)
I think it would be easier if you let us know why you NEED to know what it does.
Network Code is very complex and versatile, so you shouldn't need to do anything like this and whatever you want to do shouldn't require you to understand it.
Flux Networks - CurseForge - Source Code
Practical Logistics 2 - CurseForge - Source Code
Calculator - CurseForge - Source Code
Bagelsmore - CurseForge - Source Code
sorry for the late reply, but it ties into a problem im having over on this thread.
https://www.minecraftforum.net/forums/support/server-support-and/2905677-everyone-keeps-getting-kicked-from-my-server