Package net.minecraft.inventory
Enum EquipmentSlotType
- java.lang.Object
-
- java.lang.Enum<EquipmentSlotType>
-
- net.minecraft.inventory.EquipmentSlotType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EquipmentSlotType>
public enum EquipmentSlotType extends java.lang.Enum<EquipmentSlotType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EquipmentSlotType.Group
-
Field Summary
Fields Modifier and Type Field Description private int
filterFlag
private int
index
private java.lang.String
name
private EquipmentSlotType.Group
type
-
Constructor Summary
Constructors Modifier Constructor Description private
EquipmentSlotType(EquipmentSlotType.Group p_i46808_3_, int p_i46808_4_, int p_i46808_5_, java.lang.String p_i46808_6_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EquipmentSlotType
byName(java.lang.String p_188451_0_)
static EquipmentSlotType
byTypeAndIndex(EquipmentSlotType.Group p_220318_0_, int p_220318_1_)
int
getFilterFlag()
int
getIndex()
java.lang.String
getName()
EquipmentSlotType.Group
getType()
static EquipmentSlotType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EquipmentSlotType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAINHAND
public static final EquipmentSlotType MAINHAND
-
OFFHAND
public static final EquipmentSlotType OFFHAND
-
FEET
public static final EquipmentSlotType FEET
-
LEGS
public static final EquipmentSlotType LEGS
-
CHEST
public static final EquipmentSlotType CHEST
-
HEAD
public static final EquipmentSlotType HEAD
-
-
Field Detail
-
type
private final EquipmentSlotType.Group type
-
index
private final int index
-
filterFlag
private final int filterFlag
-
name
private final java.lang.String name
-
-
Constructor Detail
-
EquipmentSlotType
private EquipmentSlotType(EquipmentSlotType.Group p_i46808_3_, int p_i46808_4_, int p_i46808_5_, java.lang.String p_i46808_6_)
-
-
Method Detail
-
values
public static EquipmentSlotType[] 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 (EquipmentSlotType c : EquipmentSlotType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EquipmentSlotType 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
-
getType
public EquipmentSlotType.Group getType()
-
getIndex
public int getIndex()
-
getFilterFlag
public int getFilterFlag()
-
getName
public java.lang.String getName()
-
byName
public static EquipmentSlotType byName(java.lang.String p_188451_0_)
-
byTypeAndIndex
public static EquipmentSlotType byTypeAndIndex(EquipmentSlotType.Group p_220318_0_, int p_220318_1_)
-
-