public class PacketDispatcher
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PacketDispatcher.NetworkManagerDispatcher |
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.function.BiConsumer<ResourceLocation,PacketBuffer> |
packetSink |
| Modifier | Constructor and Description |
|---|---|
private |
PacketDispatcher() |
(package private) |
PacketDispatcher(java.util.function.BiConsumer<ResourceLocation,PacketBuffer> packetSink) |
| Modifier and Type | Method and Description |
|---|---|
void |
sendPacket(ResourceLocation resourceLocation,
PacketBuffer buffer) |
java.util.function.BiConsumer<ResourceLocation,PacketBuffer> packetSink
PacketDispatcher(java.util.function.BiConsumer<ResourceLocation,PacketBuffer> packetSink)
private PacketDispatcher()
public void sendPacket(ResourceLocation resourceLocation, PacketBuffer buffer)