Package com.comphenix.protocol.utility
Class MinecraftMethods
java.lang.Object
com.comphenix.protocol.utility.MinecraftMethods
Static methods for accessing Minecraft methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic MethodAccessorRetrieve the handle/send packet method of network manager.static MethodAccessorRetrieve the packetRead(ChannelHandlerContext, Packet) method of NetworkManager.static MethodAccessorRetrieve the handle/send packet method of network manager.static MethodAccessorDeprecated.no longer works since 1.20.5static MethodAccessorDeprecated.no longer works since 1.20.5static MethodAccessorRetrieve the disconnect method for a given player connection.static MethodAccessorRetrieve the send packet method in PlayerConnection/NetServerHandler.
-
Method Details
-
getFriendlyBufBufConstructor
-
getPlayerConnectionSendMethod
Retrieve the send packet method in PlayerConnection/NetServerHandler.- Returns:
- The send packet method.
-
getPlayerConnectionDisconnectMethod
Retrieve the disconnect method for a given player connection.- Returns:
- The
-
getNetworkManagerSendMethod
Retrieve the handle/send packet method of network manager.- Returns:
- The handle method.
-
getNetworkManagerReadPacketMethod
Retrieve the packetRead(ChannelHandlerContext, Packet) method of NetworkManager.- Returns:
- The packetRead method.
-
getNetworkManagerDisconnectMethod
Retrieve the handle/send packet method of network manager.- Returns:
- The handle method.
-
getPacketReadByteBufMethod
Deprecated.no longer works since 1.20.5Retrieve the Packet.read(PacketDataSerializer) method.- Returns:
- The packet read method.
-
getPacketWriteByteBufMethod
Deprecated.no longer works since 1.20.5Retrieve the Packet.write(PacketDataSerializer) method.This only exists in version 1.7.2 and above.
- Returns:
- The packet write method.
-