public class MinecraftMethods
extends java.lang.Object
Constructor and Description |
---|
MinecraftMethods() |
Modifier and Type | Method and Description |
---|---|
static java.lang.reflect.Method |
getDisconnectMethod(java.lang.Class<? extends java.lang.Object> playerConnection)
Retrieve the disconnect method for a given player connection.
|
static java.lang.reflect.Method |
getNetworkManagerHandleMethod()
Retrieve the handle(Packet, GenericFutureListener[]) method of network manager.
|
static java.lang.reflect.Method |
getNetworkManagerReadPacketMethod()
Retrieve the packetRead(ChannelHandlerContext, Packet) method of NetworkMananger.
|
static java.lang.reflect.Method |
getPacketReadByteBufMethod()
Retrieve the Packet.read(PacketDataSerializer) method.
|
static java.lang.reflect.Method |
getPacketWriteByteBufMethod()
Retrieve the Packet.write(PacketDataSerializer) method.
|
static java.lang.reflect.Method |
getSendPacketMethod()
Retrieve the send packet method in PlayerConnection/NetServerHandler.
|
public static java.lang.reflect.Method getSendPacketMethod()
public static java.lang.reflect.Method getDisconnectMethod(java.lang.Class<? extends java.lang.Object> playerConnection)
playerConnection
- - the player connection.public static java.lang.reflect.Method getNetworkManagerHandleMethod()
This only exists in version 1.7.2 and above.
public static java.lang.reflect.Method getNetworkManagerReadPacketMethod()
This only exists in version 1.7.2 and above.
public static java.lang.reflect.Method getPacketReadByteBufMethod()
This only exists in version 1.7.2 and above.
public static java.lang.reflect.Method getPacketWriteByteBufMethod()
This only exists in version 1.7.2 and above.