Uses of Class
net.minecraftforge.fml.network.PacketDistributor
-
Uses of PacketDistributor in net.minecraftforge.fml.network
Modifier and TypeFieldDescriptionstatic final PacketDistributor<Void>
PacketDistributor.ALL
Send to everyone
noArg()
static final PacketDistributor<RegistryKey<World>>
PacketDistributor.DIMENSION
Send to everyone in the dimension specified in the Supplier
with(Supplier)
DimensionTypeprivate final PacketDistributor<?>
PacketDistributor.PacketTarget.distributor
static final PacketDistributor<PacketDistributor.TargetPoint>
PacketDistributor.NEAR
Send to everyone near thePacketDistributor.TargetPoint
specified in the Supplier
with(Supplier)
TargetPointstatic final PacketDistributor<List<NetworkManager>>
PacketDistributor.NMLIST
Send to the supplied list of NetworkManager instances in the Supplier
with(Supplier)
List of NetworkManagerstatic final PacketDistributor<ServerPlayerEntity>
PacketDistributor.PLAYER
Send to the player specified in the Supplier
with(Supplier)
Playerstatic final PacketDistributor<Void>
PacketDistributor.SERVER
Send to the server (CLIENT to SERVER)
noArg()
static final PacketDistributor<Chunk>
PacketDistributor.TRACKING_CHUNK
Send to all tracking the Chunk in the Supplier
with(Supplier)
Chunkstatic final PacketDistributor<Entity>
PacketDistributor.TRACKING_ENTITY
Send to all tracking the Entity in the Supplier
with(Supplier)
Entitystatic final PacketDistributor<Entity>
PacketDistributor.TRACKING_ENTITY_AND_SELF
Send to all tracking the Entity and Player in the Supplier
with(Supplier)
EntityModifier and TypeFieldDescriptionprivate final BiFunction<PacketDistributor<T>,
Supplier<T>, Consumer<IPacket<?>>> PacketDistributor.functor
ModifierConstructorDescription(package private)
PacketTarget
(Consumer<IPacket<?>> packetConsumer, PacketDistributor<?> distributor) ModifierConstructorDescriptionPacketDistributor
(BiFunction<PacketDistributor<T>, Supplier<T>, Consumer<IPacket<?>>> functor, NetworkDirection direction)