Package net.minecraftforge.fml.network
Class PacketDispatcher
java.lang.Object
net.minecraftforge.fml.network.PacketDispatcher
- Direct Known Subclasses:
PacketDispatcher.NetworkManagerDispatcher
Dispatcher for sending packets in response to a received packet. Abstracts out the difference between wrapped packets
and unwrapped packets.
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
(package private)
PacketDispatcher
(BiConsumer<ResourceLocation, PacketBuffer> packetSink) -
Method Summary
Modifier and TypeMethodDescriptionvoid
sendPacket
(ResourceLocation resourceLocation, PacketBuffer buffer)
-
Field Details
-
packetSink
BiConsumer<ResourceLocation,PacketBuffer> packetSink
-
-
Constructor Details
-
PacketDispatcher
PacketDispatcher(BiConsumer<ResourceLocation, PacketBuffer> packetSink) -
PacketDispatcher
private PacketDispatcher()
-
-
Method Details
-
sendPacket
-