public class FMLNetworkEvent<T extends INetHandler> extends Event
Modifier and Type | Class and Description |
---|---|
static class |
FMLNetworkEvent.ClientConnectedToServerEvent
Fired at the client when a client connects to a server
|
static class |
FMLNetworkEvent.ClientCustomPacketEvent
Fired when a custom packet is received on the client for the channel
|
static class |
FMLNetworkEvent.ClientDisconnectionFromServerEvent
Fired at the client when the client is disconnected from the server.
|
static class |
FMLNetworkEvent.CustomNetworkEvent
Fired when a custom event, such as
NetworkHandshakeEstablished is fired for the channel |
static class |
FMLNetworkEvent.CustomPacketEvent<S extends INetHandler> |
static class |
FMLNetworkEvent.CustomPacketRegistrationEvent<S extends INetHandler>
Fired when the REGISTER/UNREGISTER for custom channels is received.
|
static class |
FMLNetworkEvent.ServerConnectionFromClientEvent
Fired at the server when a client connects to the server.
|
static class |
FMLNetworkEvent.ServerCustomPacketEvent
Fired when a custom packet is received at the server for the channel
|
static class |
FMLNetworkEvent.ServerDisconnectionFromClientEvent
Fired at the server when a client disconnects.
|
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private T |
handler |
private NetworkManager |
manager |
private java.lang.Class<T> |
type |
Constructor and Description |
---|
FMLNetworkEvent(T thing,
java.lang.Class<T> type,
NetworkManager manager) |
Modifier and Type | Method and Description |
---|---|
T |
getHandler() |
java.lang.Class<T> |
getHandlerType() |
NetworkManager |
getManager() |
java.lang.Class<T> |
getType() |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final T extends INetHandler handler
private final NetworkManager manager
private final java.lang.Class<T extends INetHandler> type
FMLNetworkEvent(T thing, java.lang.Class<T> type, NetworkManager manager)
public java.lang.Class<T> getHandlerType()
public T getHandler()
public NetworkManager getManager()
public java.lang.Class<T> getType()