public final class PacketEvent extends java.lang.Object
Constructor and Description |
---|
PacketEvent(net.minecraft.network.NetworkManager networkManager,
EventState state,
net.minecraft.network.Packet<?> packet) |
Modifier and Type | Method and Description |
---|---|
<T extends net.minecraft.network.Packet<?>> |
cast() |
net.minecraft.network.NetworkManager |
getNetworkManager() |
net.minecraft.network.Packet<?> |
getPacket() |
EventState |
getState() |
public PacketEvent(net.minecraft.network.NetworkManager networkManager, EventState state, net.minecraft.network.Packet<?> packet)
public final net.minecraft.network.NetworkManager getNetworkManager()
public final EventState getState()
public final net.minecraft.network.Packet<?> getPacket()
public final <T extends net.minecraft.network.Packet<?>> T cast()