Package net.minecraftforge.network
Class NetworkEvent.PacketDispatcher.NetworkManagerDispatcher
java.lang.Object
net.minecraftforge.network.NetworkEvent.PacketDispatcher
net.minecraftforge.network.NetworkEvent.PacketDispatcher.NetworkManagerDispatcher
- Enclosing class:
- NetworkEvent.PacketDispatcher
static class NetworkEvent.PacketDispatcher.NetworkManagerDispatcher
extends NetworkEvent.PacketDispatcher
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.network.NetworkEvent.PacketDispatcher
NetworkEvent.PacketDispatcher.NetworkManagerDispatcher
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BiFunction<org.apache.commons.lang3.tuple.Pair<FriendlyByteBuf,
Integer>, ResourceLocation, ICustomPacket<?>> private final Connection
private final int
Fields inherited from class net.minecraftforge.network.NetworkEvent.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.network.NetworkEvent.PacketDispatcher
sendPacket
-
Field Details
-
manager
-
packetIndex
private final int packetIndex -
customPacketSupplier
private final BiFunction<org.apache.commons.lang3.tuple.Pair<FriendlyByteBuf,Integer>, customPacketSupplierResourceLocation, ICustomPacket<?>>
-
-
Constructor Details
-
NetworkManagerDispatcher
NetworkManagerDispatcher(Connection manager, int packetIndex, BiFunction<org.apache.commons.lang3.tuple.Pair<FriendlyByteBuf, Integer>, ResourceLocation, ICustomPacket<?>> customPacketSupplier)
-
-
Method Details
-
dispatchPacket
-