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 |
Modifier and Type | Field and Description |
---|---|
private int |
loginIndex |
private PacketBuffer |
payload |
private java.util.function.Supplier<NetworkEvent.Context> |
source |
Modifier | Constructor and Description |
---|---|
private |
NetworkEvent(ICustomPacket<?> payload,
java.util.function.Supplier<NetworkEvent.Context> source) |
private |
NetworkEvent(PacketBuffer payload,
java.util.function.Supplier<NetworkEvent.Context> source,
int loginIndex) |
|
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() |
private final PacketBuffer payload
private final java.util.function.Supplier<NetworkEvent.Context> source
private final int loginIndex
private NetworkEvent(ICustomPacket<?> payload, java.util.function.Supplier<NetworkEvent.Context> source)
private NetworkEvent(PacketBuffer payload, java.util.function.Supplier<NetworkEvent.Context> source, int loginIndex)
public NetworkEvent(java.util.function.Supplier<NetworkEvent.Context> source)
public PacketBuffer getPayload()
public java.util.function.Supplier<NetworkEvent.Context> getSource()
public int getLoginIndex()