Uses of Class
net.minecraftforge.network.PacketDistributor
-
Uses of PacketDistributor in net.minecraftforge.network
Modifier and TypeFieldDescriptionstatic final PacketDistributor<Void>
PacketDistributor.ALL
Send to everyone
noArg()
static final PacketDistributor<ResourceKey<Level>>
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<Connection>>
PacketDistributor.NMLIST
Send to the supplied list of NetworkManager instances in the Supplier
with(Supplier)
List of NetworkManagerstatic final PacketDistributor<ServerPlayer>
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<LevelChunk>
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<Packet<?>>> PacketDistributor.functor
ModifierConstructorDescription(package private)
PacketTarget
(Consumer<Packet<?>> packetConsumer, PacketDistributor<?> distributor) ModifierConstructorDescriptionPacketDistributor
(BiFunction<PacketDistributor<T>, Supplier<T>, Consumer<Packet<?>>> functor, NetworkDirection direction)