Uses of Record 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(T)
DimensionTypestatic final PacketDistributor<PacketDistributor.TargetPoint>
PacketDistributor.NEAR
Send to everyone near thePacketDistributor.TargetPoint
specified in the Supplier
with(T)
TargetPointstatic final PacketDistributor<List<Connection>>
PacketDistributor.NMLIST
Send to the supplied list of NetworkManager instances in the Supplier
with(T)
List of NetworkManagerstatic final PacketDistributor<ServerPlayer>
PacketDistributor.PLAYER
Send to the player specified in the Supplier
with(T)
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(T)
Chunkstatic final PacketDistributor<Entity>
PacketDistributor.TRACKING_ENTITY
Send to all tracking the Entity in the Supplier
with(T)
Entitystatic final PacketDistributor<Entity>
PacketDistributor.TRACKING_ENTITY_AND_SELF
Send to all tracking the Entity and Player in the Supplier
with(T)
EntityModifier and TypeFieldDescriptionprivate final BiFunction<PacketDistributor<T>,
T, Consumer<Packet<?>>> PacketDistributor.functor
The field for thefunctor
record component.Modifier and TypeMethodDescriptionBiFunction<PacketDistributor<T>,
T, Consumer<Packet<?>>> PacketDistributor.functor()
Returns the value of thefunctor
record component.ModifierConstructorDescriptionPacketDistributor
(BiFunction<PacketDistributor<T>, T, Consumer<Packet<?>>> functor) PacketDistributor
(BiFunction<PacketDistributor<T>, T, Consumer<Packet<?>>> functor, NetworkDirection direction) Creates an instance of aPacketDistributor
record class.