public static class PacketDistributor.PacketTarget
extends java.lang.Object
net.minecraftforge.fml.network.simple.SimpleChannel#send(PacketTarget, Object)
Modifier and Type | Field and Description |
---|---|
private PacketDistributor<?> |
distributor |
private java.util.function.Consumer<IPacket<?>> |
packetConsumer |
Constructor and Description |
---|
PacketTarget(java.util.function.Consumer<IPacket<?>> packetConsumer,
PacketDistributor<?> distributor) |
Modifier and Type | Method and Description |
---|---|
NetworkDirection |
getDirection() |
void |
send(IPacket<?> packet) |
private final java.util.function.Consumer<IPacket<?>> packetConsumer
private final PacketDistributor<?> distributor
PacketTarget(java.util.function.Consumer<IPacket<?>> packetConsumer, PacketDistributor<?> distributor)
public void send(IPacket<?> packet)
public NetworkDirection getDirection()