Enum SPlayerPositionLookPacket.Flags
- java.lang.Object
-
- java.lang.Enum<SPlayerPositionLookPacket.Flags>
-
- net.minecraft.network.play.server.SPlayerPositionLookPacket.Flags
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SPlayerPositionLookPacket.Flags>
- Enclosing class:
- SPlayerPositionLookPacket
public static enum SPlayerPositionLookPacket.Flags extends java.lang.Enum<SPlayerPositionLookPacket.Flags>
-
-
Field Summary
Fields Modifier and Type Field Description private int
bit
-
Constructor Summary
Constructors Modifier Constructor Description private
Flags(int p_i46690_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
getMask()
private boolean
isSet(int p_187043_1_)
static int
pack(java.util.Set<SPlayerPositionLookPacket.Flags> p_187040_0_)
static java.util.Set<SPlayerPositionLookPacket.Flags>
unpack(int p_187044_0_)
static SPlayerPositionLookPacket.Flags
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SPlayerPositionLookPacket.Flags[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
X
public static final SPlayerPositionLookPacket.Flags X
-
Y
public static final SPlayerPositionLookPacket.Flags Y
-
Z
public static final SPlayerPositionLookPacket.Flags Z
-
Y_ROT
public static final SPlayerPositionLookPacket.Flags Y_ROT
-
X_ROT
public static final SPlayerPositionLookPacket.Flags X_ROT
-
-
Method Detail
-
values
public static SPlayerPositionLookPacket.Flags[] 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 (SPlayerPositionLookPacket.Flags c : SPlayerPositionLookPacket.Flags.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SPlayerPositionLookPacket.Flags 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
-
getMask
private int getMask()
-
isSet
private boolean isSet(int p_187043_1_)
-
unpack
public static java.util.Set<SPlayerPositionLookPacket.Flags> unpack(int p_187044_0_)
-
pack
public static int pack(java.util.Set<SPlayerPositionLookPacket.Flags> p_187040_0_)
-
-