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