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 MethodAccessorgetDisconnectMethod(Class<?> playerConnection) Retrieve the disconnect method for a given player connection.static MethodAccessorRetrieve the handle/send packet method of network manager.static MethodAccessorRetrieve the packetRead(ChannelHandlerContext, Packet) method of NetworkManager.static MethodAccessorRetrieve the Packet.read(PacketDataSerializer) method.static MethodAccessorRetrieve the Packet.write(PacketDataSerializer) method.static MethodAccessorRetrieve the send packet method in PlayerConnection/NetServerHandler.
-
Method Details
-
getSendPacketMethod
Retrieve the send packet method in PlayerConnection/NetServerHandler.- Returns:
- The send packet method.
-
getDisconnectMethod
Retrieve the disconnect method for a given player connection.- Parameters:
playerConnection- - the player connection.- Returns:
- The
-
getNetworkManagerHandleMethod
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.
-
getPacketReadByteBufMethod
Retrieve the Packet.read(PacketDataSerializer) method.- Returns:
- The packet read method.
-
getPacketWriteByteBufMethod
Retrieve the Packet.write(PacketDataSerializer) method.This only exists in version 1.7.2 and above.
- Returns:
- The packet write method.
-