Class PacketDispatcher.NetworkManagerDispatcher
java.lang.Object
net.minecraftforge.fmllegacy.network.PacketDispatcher
net.minecraftforge.fmllegacy.network.PacketDispatcher.NetworkManagerDispatcher
- Enclosing class:
- PacketDispatcher
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.fmllegacy.network.PacketDispatcher
PacketDispatcher.NetworkManagerDispatcher
-
Field Summary
Modifier and TypeFieldDescriptionprivate BiFunction<org.apache.commons.lang3.tuple.Pair<FriendlyByteBuf,Integer>,ResourceLocation,ICustomPacket<?>>
private Connection
private int
Fields inherited from class net.minecraftforge.fmllegacy.network.PacketDispatcher
packetSink
-
Constructor Summary
ConstructorDescriptionNetworkManagerDispatcher(Connection manager, int packetIndex, BiFunction<org.apache.commons.lang3.tuple.Pair<FriendlyByteBuf,Integer>,ResourceLocation,ICustomPacket<?>> customPacketSupplier)
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
dispatchPacket(ResourceLocation resourceLocation, FriendlyByteBuf buffer)
Methods inherited from class net.minecraftforge.fmllegacy.network.PacketDispatcher
sendPacket
-
Field Details
-
manager
-
packetIndex
private final int packetIndex -
customPacketSupplier
private final BiFunction<org.apache.commons.lang3.tuple.Pair<FriendlyByteBuf,Integer>,ResourceLocation,ICustomPacket<?>> customPacketSupplier
-
-
Constructor Details
-
NetworkManagerDispatcher
NetworkManagerDispatcher(Connection manager, int packetIndex, BiFunction<org.apache.commons.lang3.tuple.Pair<FriendlyByteBuf,Integer>,ResourceLocation,ICustomPacket<?>> customPacketSupplier)
-
-
Method Details
-
dispatchPacket
-