net.minecraft.entity

public enum EquipmentSlot

implements StringIdentifiable

net.minecraft.world.entity.EquipmentSlot
net.minecraft.class_1304
net.minecraft.entity.EquipmentSlot

Enum constant summary

Enum Constant
MAINHAND
field_6173
MAINHAND
OFFHAND
field_6171
OFFHAND
FEET
field_6166
FEET
LEGS
field_6172
LEGS
CHEST
field_6174
CHEST
HEAD
field_6169
HEAD
BODY
field_48824
BODY
SADDLE
field_55946
SADDLE

Field summary

Modifier and TypeField
public static final int
NO_COUNT_LIMIT
field_51935
NO_MAX_COUNT
public static final List<EquipmentSlot>
VALUES
field_54086
VALUES
public static final IntFunction<EquipmentSlot>
BY_ID
field_54087
FROM_INDEX
public static final StringIdentifiable$EnumCodec<EquipmentSlot>
CODEC
field_45739
CODEC
public static final PacketCodec<io.netty.buffer.ByteBuf, EquipmentSlot>
STREAM_CODEC
field_54088
PACKET_CODEC
private final EquipmentSlot$Type
type
field_6170
type
private final int
index
field_6168
entityId
private final int
countLimit
field_51936
maxCount
private final int
id
field_54089
index
private final String
name
field_6175
name
private static final EquipmentSlot[]
$VALUES
field_6176
field_6176

Constructor summary

ModifierConstructor
private (EquipmentSlot$Type $enum$name, int $enum$ordinal, int type, int entityId, String maxCount)
private (EquipmentSlot$Type $enum$name, int $enum$ordinal, int type, String entityId)

Method summary

Modifier and TypeMethod
public EquipmentSlot$Type
getType()
method_5925()
getType()
public int
getIndex()
method_5927()
getEntitySlotId()
public int
getIndex(int base)
method_32320(int arg0)
getOffsetEntitySlotId(int offset)
public ItemStack
limit(ItemStack toEquip)
method_60610(class_1799 arg0)
split(ItemStack stack)
public int
getId()
method_63622()
getIndex()
public int
getFilterBit(int offset)
method_63620(int arg0)
getOffsetIndex(int offset)
public String
getName()
method_5923()
getName()
public boolean
isArmor()
method_46643()
isArmorSlot()
public String
getSerializedName()
method_15434()
asString()
public boolean
canIncreaseExperience()
method_66664()
increasesDroppedExperience()
public static EquipmentSlot
byName(String name)
method_5924(String arg0)
byName(String name)
private static EquipmentSlot[]
$values()
method_36604()
method_36604()
private static int
lambda$static$1(EquipmentSlot arg0)
method_63619(class_1304 arg0)
method_63619(EquipmentSlot slot)
private static int
lambda$static$0(EquipmentSlot arg0)
method_63621(class_1304 arg0)
method_63621(EquipmentSlot slot)