Package net.minecraftforge.fml.network
Enum ICustomPacket.Fields
- java.lang.Object
-
- java.lang.Enum<ICustomPacket.Fields>
-
- net.minecraftforge.fml.network.ICustomPacket.Fields
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ICustomPacket.Fields>
- Enclosing interface:
- ICustomPacket<T extends IPacket<?>>
public static enum ICustomPacket.Fields extends java.lang.Enum<ICustomPacket.Fields>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CPACKETCUSTOMLOGIN
CPACKETCUSTOMPAYLOAD
SPACKETCUSTOMLOGIN
SPACKETCUSTOMPAYLOAD
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Optional<java.lang.reflect.Field>
channel
private java.lang.Class<?>
clazz
(package private) java.util.Optional<java.lang.reflect.Field>
data
(package private) java.util.Optional<java.lang.reflect.Field>
index
(package private) static it.unimi.dsi.fastutil.objects.Reference2ReferenceArrayMap<java.lang.Class<?>,ICustomPacket.Fields>
lookup
-
Constructor Summary
Constructors Modifier Constructor Description private
Fields(java.lang.Class<?> customPacketClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.Class<?>
getClazz()
static ICustomPacket.Fields
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ICustomPacket.Fields[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CPACKETCUSTOMPAYLOAD
public static final ICustomPacket.Fields CPACKETCUSTOMPAYLOAD
-
SPACKETCUSTOMPAYLOAD
public static final ICustomPacket.Fields SPACKETCUSTOMPAYLOAD
-
CPACKETCUSTOMLOGIN
public static final ICustomPacket.Fields CPACKETCUSTOMLOGIN
-
SPACKETCUSTOMLOGIN
public static final ICustomPacket.Fields SPACKETCUSTOMLOGIN
-
-
Field Detail
-
lookup
static final it.unimi.dsi.fastutil.objects.Reference2ReferenceArrayMap<java.lang.Class<?>,ICustomPacket.Fields> lookup
-
clazz
private final java.lang.Class<?> clazz
-
data
final java.util.Optional<java.lang.reflect.Field> data
-
channel
final java.util.Optional<java.lang.reflect.Field> channel
-
index
final java.util.Optional<java.lang.reflect.Field> index
-
-
Method Detail
-
values
public static ICustomPacket.Fields[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ICustomPacket.Fields c : ICustomPacket.Fields.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ICustomPacket.Fields valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getClazz
private java.lang.Class<?> getClazz()
-
-