Package | Description |
---|---|
net.minecraftforge.fml.network |
Modifier and Type | Field and Description |
---|---|
static PacketDistributor<java.lang.Void> |
PacketDistributor.ALL
Send to everyone
noArg() |
static PacketDistributor<DimensionType> |
PacketDistributor.DIMENSION
Send to everyone in the dimension specified in the Supplier
with(Supplier) DimensionType |
private PacketDistributor<?> |
PacketDistributor.PacketTarget.distributor |
static PacketDistributor<PacketDistributor.TargetPoint> |
PacketDistributor.NEAR
Send to everyone near the
PacketDistributor.TargetPoint specified in the Supplier
with(Supplier) TargetPoint |
static PacketDistributor<java.util.List<NetworkManager>> |
PacketDistributor.NMLIST
Send to the supplied list of NetworkManager instances in the Supplier
with(Supplier) List of NetworkManager |
static PacketDistributor<ServerPlayerEntity> |
PacketDistributor.PLAYER
Send to the player specified in the Supplier
with(Supplier) Player |
static PacketDistributor<java.lang.Void> |
PacketDistributor.SERVER
Send to the server (CLIENT to SERVER)
noArg() |
static PacketDistributor<Chunk> |
PacketDistributor.TRACKING_CHUNK
Send to all tracking the Chunk in the Supplier
with(Supplier) Chunk |
static PacketDistributor<Entity> |
PacketDistributor.TRACKING_ENTITY
Send to all tracking the Entity in the Supplier
with(Supplier) Entity |
static PacketDistributor<Entity> |
PacketDistributor.TRACKING_ENTITY_AND_SELF
Send to all tracking the Entity and Player in the Supplier
with(Supplier) Entity |
Modifier and Type | Field and Description |
---|---|
private java.util.function.BiFunction<PacketDistributor<T>,java.util.function.Supplier<T>,java.util.function.Consumer<IPacket<?>>> |
PacketDistributor.functor |
Constructor and Description |
---|
PacketTarget(java.util.function.Consumer<IPacket<?>> packetConsumer,
PacketDistributor<?> distributor) |
Constructor and Description |
---|
PacketDistributor(java.util.function.BiFunction<PacketDistributor<T>,java.util.function.Supplier<T>,java.util.function.Consumer<IPacket<?>>> functor,
NetworkDirection direction) |