public abstract static class FMLNetworkEvent.CustomPacketEvent<S extends INetHandler> extends FMLNetworkEvent<S>
FMLNetworkEvent.ClientConnectedToServerEvent, FMLNetworkEvent.ClientCustomPacketEvent, FMLNetworkEvent.ClientDisconnectionFromServerEvent, FMLNetworkEvent.CustomNetworkEvent, FMLNetworkEvent.CustomPacketEvent<S extends INetHandler>, FMLNetworkEvent.CustomPacketRegistrationEvent<S extends INetHandler>, FMLNetworkEvent.ServerConnectionFromClientEvent, FMLNetworkEvent.ServerCustomPacketEvent, FMLNetworkEvent.ServerDisconnectionFromClientEvent
Event.HasResult, Event.Result
Modifier and Type | Method and Description |
---|---|
FMLProxyPacket |
getPacket()
The packet that generated the event
|
FMLProxyPacket |
getReply()
Set this packet to reply to the originator
|
void |
setReply(FMLProxyPacket reply) |
abstract Side |
side() |
getHandler, getHandlerType, getManager, getType
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public abstract Side side()
public FMLProxyPacket getPacket()
public FMLProxyPacket getReply()
public void setReply(FMLProxyPacket reply)