public static enum FMLOutboundHandler.OutboundTarget extends java.lang.Enum<FMLOutboundHandler.OutboundTarget>
Enum Constant and Description |
---|
ALL
The packet is dispatched to all players connected to the server.
|
ALLAROUNDPOINT
The packet is sent to all players within range of the
NetworkRegistry.TargetPoint argument supplied. |
DIMENSION
The packet is sent to all players in the dimension identified by the integer argument.
|
DISPATCHER
The packet is sent to the
NetworkDispatcher supplied as an argument. |
NOWHERE
The packet is sent nowhere.
|
PLAYER
The packet is sent to the
EntityPlayerMP supplied as an argument. |
REPLY
The packet is sent to the originator of the packet.
|
TOSERVER
The packet is sent to the server this client is currently conversing with.
|
Modifier and Type | Field and Description |
---|---|
com.google.common.collect.ImmutableSet<Side> |
allowed |
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<NetworkDispatcher> |
selectNetworks(java.lang.Object args,
io.netty.channel.ChannelHandlerContext context,
FMLProxyPacket packet) |
abstract void |
validateArgs(java.lang.Object args) |
static FMLOutboundHandler.OutboundTarget |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FMLOutboundHandler.OutboundTarget[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FMLOutboundHandler.OutboundTarget NOWHERE
EmbeddedChannel.outboundMessages()
Queue.public static final FMLOutboundHandler.OutboundTarget DISPATCHER
NetworkDispatcher
supplied as an argument.public static final FMLOutboundHandler.OutboundTarget REPLY
public static final FMLOutboundHandler.OutboundTarget PLAYER
EntityPlayerMP
supplied as an argument.public static final FMLOutboundHandler.OutboundTarget ALL
public static final FMLOutboundHandler.OutboundTarget DIMENSION
public static final FMLOutboundHandler.OutboundTarget ALLAROUNDPOINT
NetworkRegistry.TargetPoint
argument supplied.public static final FMLOutboundHandler.OutboundTarget TOSERVER
public final com.google.common.collect.ImmutableSet<Side> allowed
public static FMLOutboundHandler.OutboundTarget[] values()
for (FMLOutboundHandler.OutboundTarget c : FMLOutboundHandler.OutboundTarget.values()) System.out.println(c);
public static FMLOutboundHandler.OutboundTarget valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract void validateArgs(java.lang.Object args)
public abstract java.util.List<NetworkDispatcher> selectNetworks(java.lang.Object args, io.netty.channel.ChannelHandlerContext context, FMLProxyPacket packet)