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