static class PacketDispatcher.NetworkManagerDispatcher extends PacketDispatcher
PacketDispatcher.NetworkManagerDispatcher
Modifier and Type | Field and Description |
---|---|
private java.util.function.BiFunction<org.apache.commons.lang3.tuple.Pair<PacketBuffer,java.lang.Integer>,ResourceLocation,ICustomPacket<?>> |
customPacketSupplier |
private NetworkManager |
manager |
private int |
packetIndex |
packetSink
Constructor and Description |
---|
NetworkManagerDispatcher(NetworkManager manager,
int packetIndex,
java.util.function.BiFunction<org.apache.commons.lang3.tuple.Pair<PacketBuffer,java.lang.Integer>,ResourceLocation,ICustomPacket<?>> customPacketSupplier) |
Modifier and Type | Method and Description |
---|---|
private void |
dispatchPacket(ResourceLocation resourceLocation,
PacketBuffer buffer) |
sendPacket
private final NetworkManager manager
private final int packetIndex
private final java.util.function.BiFunction<org.apache.commons.lang3.tuple.Pair<PacketBuffer,java.lang.Integer>,ResourceLocation,ICustomPacket<?>> customPacketSupplier
NetworkManagerDispatcher(NetworkManager manager, int packetIndex, java.util.function.BiFunction<org.apache.commons.lang3.tuple.Pair<PacketBuffer,java.lang.Integer>,ResourceLocation,ICustomPacket<?>> customPacketSupplier)
private void dispatchPacket(ResourceLocation resourceLocation, PacketBuffer buffer)