T
- public class PacketDistributor<T>
extends java.lang.Object
net.minecraftforge.fml.network.simple.SimpleChannel#send(PacketTarget, Object)
修飾子とタイプ | クラスと説明 |
---|---|
static class |
PacketDistributor.PacketTarget
A Distributor curried with a specific value instance, for actual dispatch
|
static class |
PacketDistributor.TargetPoint |
修飾子とタイプ | フィールドと説明 |
---|---|
static PacketDistributor<java.lang.Void> |
ALL
Send to everyone
noArg() |
static PacketDistributor<DimensionType> |
DIMENSION
Send to everyone in the dimension specified in the Supplier
with(Supplier) DimensionType |
static PacketDistributor<PacketDistributor.TargetPoint> |
NEAR
Send to everyone near the
PacketDistributor.TargetPoint specified in the Supplier
with(Supplier) TargetPoint |
static PacketDistributor<java.util.List<NetworkManager>> |
NMLIST
Send to the supplied list of NetworkManager instances in the Supplier
with(Supplier) List of NetworkManager |
static PacketDistributor<ServerPlayerEntity> |
PLAYER
Send to the player specified in the Supplier
with(Supplier) Player |
static PacketDistributor<java.lang.Void> |
SERVER
Send to the server (CLIENT to SERVER)
noArg() |
static PacketDistributor<Chunk> |
TRACKING_CHUNK
Send to all tracking the Chunk in the Supplier
with(Supplier) Chunk |
static PacketDistributor<Entity> |
TRACKING_ENTITY
Send to all tracking the Entity in the Supplier
with(Supplier) Entity |
static PacketDistributor<Entity> |
TRACKING_ENTITY_AND_SELF
Send to all tracking the Entity and Player in the Supplier
with(Supplier) Entity |
コンストラクタと説明 |
---|
PacketDistributor(java.util.function.BiFunction<PacketDistributor<T>,java.util.function.Supplier<T>,java.util.function.Consumer<IPacket<?>>> functor,
NetworkDirection direction) |
修飾子とタイプ | メソッドと説明 |
---|---|
PacketDistributor.PacketTarget |
noArg()
Apply a no argument value to a distributor to generate an instance for sending packets to.
|
PacketDistributor.PacketTarget |
with(java.util.function.Supplier<T> input)
Apply the supplied value to the specific distributor to generate an instance for sending packets to.
|
public static final PacketDistributor<ServerPlayerEntity> PLAYER
with(Supplier)
Playerpublic static final PacketDistributor<DimensionType> DIMENSION
with(Supplier)
DimensionTypepublic static final PacketDistributor<PacketDistributor.TargetPoint> NEAR
PacketDistributor.TargetPoint
specified in the Supplier
with(Supplier)
TargetPointpublic static final PacketDistributor<java.lang.Void> ALL
noArg()
public static final PacketDistributor<java.lang.Void> SERVER
noArg()
public static final PacketDistributor<Entity> TRACKING_ENTITY
with(Supplier)
Entitypublic static final PacketDistributor<Entity> TRACKING_ENTITY_AND_SELF
with(Supplier)
Entitypublic static final PacketDistributor<Chunk> TRACKING_CHUNK
with(Supplier)
Chunkpublic static final PacketDistributor<java.util.List<NetworkManager>> NMLIST
with(Supplier)
List of NetworkManagerpublic PacketDistributor(java.util.function.BiFunction<PacketDistributor<T>,java.util.function.Supplier<T>,java.util.function.Consumer<IPacket<?>>> functor, NetworkDirection direction)
public PacketDistributor.PacketTarget with(java.util.function.Supplier<T> input)
input
- The input to applypublic PacketDistributor.PacketTarget noArg()