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 | Field and Description |
---|---|
private FMLProxyPacket |
packet |
private FMLProxyPacket |
reply |
Constructor and Description |
---|
CustomPacketEvent(S thing,
java.lang.Class<S> type,
NetworkManager manager,
FMLProxyPacket packet) |
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
private final FMLProxyPacket packet
private FMLProxyPacket reply
CustomPacketEvent(S thing, java.lang.Class<S> type, NetworkManager manager, FMLProxyPacket packet)
public abstract Side side()
public FMLProxyPacket getPacket()
public FMLProxyPacket getReply()
public void setReply(FMLProxyPacket reply)