public class NetworkEvent
extends net.minecraftforge.eventbus.api.Event
| Modifier and Type | Class and Description |
|---|---|
static class |
NetworkEvent.ChannelRegistrationChangeEvent
Fired when the channel registration (see minecraft custom channel documentation) changes.
|
static class |
NetworkEvent.ClientCustomPayloadEvent |
static class |
NetworkEvent.ClientCustomPayloadLoginEvent |
static class |
NetworkEvent.Context
Context for
NetworkEvent |
static class |
NetworkEvent.GatherLoginPayloadsEvent |
static class |
NetworkEvent.LoginPayloadEvent |
static class |
NetworkEvent.RegistrationChangeType |
static class |
NetworkEvent.ServerCustomPayloadEvent |
static class |
NetworkEvent.ServerCustomPayloadLoginEvent |
| Constructor and Description |
|---|
NetworkEvent(java.util.function.Supplier<NetworkEvent.Context> source) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLoginIndex() |
PacketBuffer |
getPayload() |
java.util.function.Supplier<NetworkEvent.Context> |
getSource() |
public NetworkEvent(java.util.function.Supplier<NetworkEvent.Context> source)
public PacketBuffer getPayload()
public java.util.function.Supplier<NetworkEvent.Context> getSource()
public int getLoginIndex()