Package net.minecraft.entity
Enum EquipmentSlot
- All Implemented Interfaces:
Serializable,Comparable<EquipmentSlot>,java.lang.constant.Constable
- Mappings:
Namespace Name official astintermediary net/minecraft/class_1304named net/minecraft/entity/EquipmentSlot
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate Stringprivate EquipmentSlot.Type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEquipmentSlot(EquipmentSlot.Type type, int entityId, int armorStandId, String name) -
Method Summary
Modifier and TypeMethodDescriptionstatic EquipmentSlotstatic EquipmentSlotfromTypeIndex(EquipmentSlot.Type type, int index)intintgetName()intgetOffsetEntitySlotId(int offset)getType()static EquipmentSlotReturns the enum constant of this type with the specified name.static EquipmentSlot[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MAINHAND
- Mappings:
Namespace Name Mixin selector official aLast;a:Last;intermediary field_6173Lnet/minecraft/class_1304;field_6173:Lnet/minecraft/class_1304;named MAINHANDLnet/minecraft/entity/EquipmentSlot;MAINHAND:Lnet/minecraft/entity/EquipmentSlot;
-
OFFHAND
- Mappings:
Namespace Name Mixin selector official bLast;b:Last;intermediary field_6171Lnet/minecraft/class_1304;field_6171:Lnet/minecraft/class_1304;named OFFHANDLnet/minecraft/entity/EquipmentSlot;OFFHAND:Lnet/minecraft/entity/EquipmentSlot;
-
FEET
- Mappings:
Namespace Name Mixin selector official cLast;c:Last;intermediary field_6166Lnet/minecraft/class_1304;field_6166:Lnet/minecraft/class_1304;named FEETLnet/minecraft/entity/EquipmentSlot;FEET:Lnet/minecraft/entity/EquipmentSlot;
-
LEGS
- Mappings:
Namespace Name Mixin selector official dLast;d:Last;intermediary field_6172Lnet/minecraft/class_1304;field_6172:Lnet/minecraft/class_1304;named LEGSLnet/minecraft/entity/EquipmentSlot;LEGS:Lnet/minecraft/entity/EquipmentSlot;
-
CHEST
- Mappings:
Namespace Name Mixin selector official eLast;e:Last;intermediary field_6174Lnet/minecraft/class_1304;field_6174:Lnet/minecraft/class_1304;named CHESTLnet/minecraft/entity/EquipmentSlot;CHEST:Lnet/minecraft/entity/EquipmentSlot;
-
HEAD
- Mappings:
Namespace Name Mixin selector official fLast;f:Last;intermediary field_6169Lnet/minecraft/class_1304;field_6169:Lnet/minecraft/class_1304;named HEADLnet/minecraft/entity/EquipmentSlot;HEAD:Lnet/minecraft/entity/EquipmentSlot;
-
-
Field Details
-
type
- Mappings:
Namespace Name Mixin selector official gLast;g:Last$a;intermediary field_6170Lnet/minecraft/class_1304;field_6170:Lnet/minecraft/class_1304$class_1305;named typeLnet/minecraft/entity/EquipmentSlot;type:Lnet/minecraft/entity/EquipmentSlot$Type;
-
entityId
private final int entityId- Mappings:
Namespace Name Mixin selector official hLast;h:Iintermediary field_6168Lnet/minecraft/class_1304;field_6168:Inamed entityIdLnet/minecraft/entity/EquipmentSlot;entityId:I
-
armorStandId
private final int armorStandId- Mappings:
Namespace Name Mixin selector official iLast;i:Iintermediary field_6167Lnet/minecraft/class_1304;field_6167:Inamed armorStandIdLnet/minecraft/entity/EquipmentSlot;armorStandId:I
-
name
- Mappings:
Namespace Name Mixin selector official jLast;j:Ljava/lang/String;intermediary field_6175Lnet/minecraft/class_1304;field_6175:Ljava/lang/String;named nameLnet/minecraft/entity/EquipmentSlot;name:Ljava/lang/String;
-
-
Constructor Details
-
EquipmentSlot
- Mappings:
Namespace Name Mixin selector official <init>Last;<init>(Ljava/lang/String;ILast$a;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1304;<init>(Ljava/lang/String;ILnet/minecraft/class_1304$class_1305;IILjava/lang/String;)Vnamed <init>Lnet/minecraft/entity/EquipmentSlot;<init>(Ljava/lang/String;ILnet/minecraft/entity/EquipmentSlot$Type;IILjava/lang/String;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getType
- Mappings:
Namespace Name Mixin selector official aLast;a()Last$a;intermediary method_5925Lnet/minecraft/class_1304;method_5925()Lnet/minecraft/class_1304$class_1305;named getTypeLnet/minecraft/entity/EquipmentSlot;getType()Lnet/minecraft/entity/EquipmentSlot$Type;
-
getEntitySlotId
public int getEntitySlotId()- Mappings:
Namespace Name Mixin selector official bLast;b()Iintermediary method_5927Lnet/minecraft/class_1304;method_5927()Inamed getEntitySlotIdLnet/minecraft/entity/EquipmentSlot;getEntitySlotId()I
-
getOffsetEntitySlotId
public int getOffsetEntitySlotId(int offset)- Mappings:
Namespace Name Mixin selector official aLast;a(I)Iintermediary method_32320Lnet/minecraft/class_1304;method_32320(I)Inamed getOffsetEntitySlotIdLnet/minecraft/entity/EquipmentSlot;getOffsetEntitySlotId(I)I
-
getArmorStandSlotId
public int getArmorStandSlotId()- Mappings:
Namespace Name Mixin selector official cLast;c()Iintermediary method_5926Lnet/minecraft/class_1304;method_5926()Inamed getArmorStandSlotIdLnet/minecraft/entity/EquipmentSlot;getArmorStandSlotId()I
-
getName
- Mappings:
Namespace Name Mixin selector official dLast;d()Ljava/lang/String;intermediary method_5923Lnet/minecraft/class_1304;method_5923()Ljava/lang/String;named getNameLnet/minecraft/entity/EquipmentSlot;getName()Ljava/lang/String;
-
byName
- Mappings:
Namespace Name Mixin selector official aLast;a(Ljava/lang/String;)Last;intermediary method_5924Lnet/minecraft/class_1304;method_5924(Ljava/lang/String;)Lnet/minecraft/class_1304;named byNameLnet/minecraft/entity/EquipmentSlot;byName(Ljava/lang/String;)Lnet/minecraft/entity/EquipmentSlot;
-
fromTypeIndex
- Mappings:
Namespace Name Mixin selector official aLast;a(Last$a;I)Last;intermediary method_20234Lnet/minecraft/class_1304;method_20234(Lnet/minecraft/class_1304$class_1305;I)Lnet/minecraft/class_1304;named fromTypeIndexLnet/minecraft/entity/EquipmentSlot;fromTypeIndex(Lnet/minecraft/entity/EquipmentSlot$Type;I)Lnet/minecraft/entity/EquipmentSlot;
-