Package net.minecraft.entity
Enum EquipmentSlot
- All Implemented Interfaces:
Serializable
,Comparable<EquipmentSlot>
,java.lang.constant.Constable
public enum EquipmentSlot extends Enum<EquipmentSlot>
- Mappings:
Namespace Name official ara
intermediary net/minecraft/class_1304
named net/minecraft/entity/EquipmentSlot
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EquipmentSlot.Type
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private int
armorStandId
private int
entityId
private String
name
private EquipmentSlot.Type
type
-
Constructor Summary
Constructors Modifier Constructor Description private
EquipmentSlot(EquipmentSlot.Type type, int entityId, int armorStandId, String name)
-
Method Summary
Modifier and Type Method Description static EquipmentSlot
byName(String name)
static EquipmentSlot
fromTypeIndex(EquipmentSlot.Type type, int index)
int
getArmorStandSlotId()
int
getEntitySlotId()
String
getName()
EquipmentSlot.Type
getType()
int
method_32320(int int2)
static EquipmentSlot
valueOf(String name)
Returns 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 a
Lara;a:Lara;
intermediary field_6173
Lnet/minecraft/class_1304;field_6173:Lnet/minecraft/class_1304;
named MAINHAND
Lnet/minecraft/entity/EquipmentSlot;MAINHAND:Lnet/minecraft/entity/EquipmentSlot;
-
OFFHAND
- Mappings:
Namespace Name Mixin selector official b
Lara;b:Lara;
intermediary field_6171
Lnet/minecraft/class_1304;field_6171:Lnet/minecraft/class_1304;
named OFFHAND
Lnet/minecraft/entity/EquipmentSlot;OFFHAND:Lnet/minecraft/entity/EquipmentSlot;
-
FEET
- Mappings:
Namespace Name Mixin selector official c
Lara;c:Lara;
intermediary field_6166
Lnet/minecraft/class_1304;field_6166:Lnet/minecraft/class_1304;
named FEET
Lnet/minecraft/entity/EquipmentSlot;FEET:Lnet/minecraft/entity/EquipmentSlot;
-
LEGS
- Mappings:
Namespace Name Mixin selector official d
Lara;d:Lara;
intermediary field_6172
Lnet/minecraft/class_1304;field_6172:Lnet/minecraft/class_1304;
named LEGS
Lnet/minecraft/entity/EquipmentSlot;LEGS:Lnet/minecraft/entity/EquipmentSlot;
-
CHEST
- Mappings:
Namespace Name Mixin selector official e
Lara;e:Lara;
intermediary field_6174
Lnet/minecraft/class_1304;field_6174:Lnet/minecraft/class_1304;
named CHEST
Lnet/minecraft/entity/EquipmentSlot;CHEST:Lnet/minecraft/entity/EquipmentSlot;
-
HEAD
- Mappings:
Namespace Name Mixin selector official f
Lara;f:Lara;
intermediary field_6169
Lnet/minecraft/class_1304;field_6169:Lnet/minecraft/class_1304;
named HEAD
Lnet/minecraft/entity/EquipmentSlot;HEAD:Lnet/minecraft/entity/EquipmentSlot;
-
-
Field Details
-
type
- Mappings:
Namespace Name Mixin selector official g
Lara;g:Lara$a;
intermediary field_6170
Lnet/minecraft/class_1304;field_6170:Lnet/minecraft/class_1304$class_1305;
named type
Lnet/minecraft/entity/EquipmentSlot;type:Lnet/minecraft/entity/EquipmentSlot$Type;
-
entityId
private final int entityId- Mappings:
Namespace Name Mixin selector official h
Lara;h:I
intermediary field_6168
Lnet/minecraft/class_1304;field_6168:I
named entityId
Lnet/minecraft/entity/EquipmentSlot;entityId:I
-
armorStandId
private final int armorStandId- Mappings:
Namespace Name Mixin selector official i
Lara;i:I
intermediary field_6167
Lnet/minecraft/class_1304;field_6167:I
named armorStandId
Lnet/minecraft/entity/EquipmentSlot;armorStandId:I
-
name
- Mappings:
Namespace Name Mixin selector official j
Lara;j:Ljava/lang/String;
intermediary field_6175
Lnet/minecraft/class_1304;field_6175:Ljava/lang/String;
named name
Lnet/minecraft/entity/EquipmentSlot;name:Ljava/lang/String;
-
-
Constructor Details
-
EquipmentSlot
- Mappings:
Namespace Name Mixin selector official <init>
Lara;<init>(Ljava/lang/String;ILara$a;IILjava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_1304;<init>(Ljava/lang/String;ILnet/minecraft/class_1304$class_1305;IILjava/lang/String;)V
named <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 a
Lara;a()Lara$a;
intermediary method_5925
Lnet/minecraft/class_1304;method_5925()Lnet/minecraft/class_1304$class_1305;
named getType
Lnet/minecraft/entity/EquipmentSlot;getType()Lnet/minecraft/entity/EquipmentSlot$Type;
-
getEntitySlotId
public int getEntitySlotId()- Mappings:
Namespace Name Mixin selector official b
Lara;b()I
intermediary method_5927
Lnet/minecraft/class_1304;method_5927()I
named getEntitySlotId
Lnet/minecraft/entity/EquipmentSlot;getEntitySlotId()I
-
method_32320
public int method_32320(int int2)- Mappings:
Namespace Name Mixin selector official a
Lara;a(I)I
intermediary method_32320
Lnet/minecraft/class_1304;method_32320(I)I
named method_32320
Lnet/minecraft/entity/EquipmentSlot;method_32320(I)I
-
getArmorStandSlotId
public int getArmorStandSlotId()- Mappings:
Namespace Name Mixin selector official c
Lara;c()I
intermediary method_5926
Lnet/minecraft/class_1304;method_5926()I
named getArmorStandSlotId
Lnet/minecraft/entity/EquipmentSlot;getArmorStandSlotId()I
-
getName
- Mappings:
Namespace Name Mixin selector official d
Lara;d()Ljava/lang/String;
intermediary method_5923
Lnet/minecraft/class_1304;method_5923()Ljava/lang/String;
named getName
Lnet/minecraft/entity/EquipmentSlot;getName()Ljava/lang/String;
-
byName
- Mappings:
Namespace Name Mixin selector official a
Lara;a(Ljava/lang/String;)Lara;
intermediary method_5924
Lnet/minecraft/class_1304;method_5924(Ljava/lang/String;)Lnet/minecraft/class_1304;
named byName
Lnet/minecraft/entity/EquipmentSlot;byName(Ljava/lang/String;)Lnet/minecraft/entity/EquipmentSlot;
-
fromTypeIndex
- Mappings:
Namespace Name Mixin selector official a
Lara;a(Lara$a;I)Lara;
intermediary method_20234
Lnet/minecraft/class_1304;method_20234(Lnet/minecraft/class_1304$class_1305;I)Lnet/minecraft/class_1304;
named fromTypeIndex
Lnet/minecraft/entity/EquipmentSlot;fromTypeIndex(Lnet/minecraft/entity/EquipmentSlot$Type;I)Lnet/minecraft/entity/EquipmentSlot;
-