Package | Description |
---|---|
net.minecraftforge.fml.network | |
net.minecraftforge.fml.network.event | |
net.minecraftforge.fml.network.simple |
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.LoginPayloadEvent |
static class |
NetworkEvent.ServerCustomPayloadEvent |
static class |
NetworkEvent.ServerCustomPayloadLoginEvent |
Modifier and Type | Field and Description |
---|---|
private java.util.function.BiFunction<ICustomPacket<?>,java.util.function.Supplier<NetworkEvent.Context>,NetworkEvent> |
NetworkDirection.eventSupplier |
Modifier and Type | Method and Description |
---|---|
<T extends NetworkEvent> |
NetworkInstance.addListener(java.util.function.Consumer<T> eventListener) |
private <T extends NetworkEvent> |
FMLLoginWrapper.wrapperReceived(T packet) |
Modifier and Type | Method and Description |
---|---|
NetworkEvent |
NetworkDirection.getEvent(ICustomPacket<?> buffer,
java.util.function.Supplier<NetworkEvent.Context> manager) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
NetworkInstance.dispatchEvent(NetworkEvent networkEvent) |
private static FMLMCRegisterPacketHandler.ChannelList |
FMLMCRegisterPacketHandler.getFrom(NetworkEvent event) |
(package private) void |
FMLMCRegisterPacketHandler.registerListener(NetworkEvent evt) |
(package private) void |
FMLMCRegisterPacketHandler.unregisterListener(NetworkEvent evt) |
Constructor and Description |
---|
NetworkDirection(java.util.function.BiFunction<ICustomPacket<?>,java.util.function.Supplier<NetworkEvent.Context>,NetworkEvent> eventSupplier,
LogicalSide logicalSide,
java.lang.Class<? extends IPacket> clazz,
int i) |
Modifier and Type | Method and Description |
---|---|
<T extends NetworkEvent> |
EventNetworkChannel.addListener(java.util.function.Consumer<T> eventListener) |
Modifier and Type | Method and Description |
---|---|
private void |
SimpleChannel.networkEventListener(NetworkEvent networkEvent) |