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