CLASS net/minecraft/class_1304 net/minecraft/entity/EquipmentSlot COMMENT Provides enum types for several key slots found within an entity {@link net.minecraft.inventory.Inventory}. COMMENT
COMMENT Each {@link EquipmentSlot} has a type, which represents what inventory category it is contained within. COMMENT The {@code HAND} category covers the mainhand & offhand slots, while the {@code ARMOR} category covers the 4 COMMENT types of armor slots found in {@link net.minecraft.entity.LivingEntity}. COMMENT
COMMENT Each {@link EquipmentSlot} contains information on where that slot should be located within a parent {@link net.minecraft.inventory.Inventory}. COMMENT {@link EquipmentSlot#getEntitySlotId()} will provide the base slot index an {@code EquipmentSlot} should occupy (starting from {@code 0}), COMMENT while {@link EquipmentSlot#getOffsetEntitySlotId(int)} will return the same value added to an offset index. COMMENT
COMMENT {@link EquipmentSlot} can be used to quickly access the item held by an inventory slot in a {@link net.minecraft.entity.LivingEntity} through
COMMENT methods such as {@link net.minecraft.entity.LivingEntity#getEquippedStack(EquipmentSlot)}, which will return the {@link net.minecraft.item.ItemStack}
COMMENT held in the {@code LivingEntity}'s inventory slot pointed at by the target {@code EquipmentSlot}.
FIELD field_6167 armorStandId I
FIELD field_6168 entityId I
FIELD field_6170 type Lnet/minecraft/class_1304$class_1305;
FIELD field_6175 name Ljava/lang/String;
METHOD
COMMENT An {@link EquipmentSlot} either targets the hand or body type, which can be used to determine whether a request
COMMENT to manipulate {@link EquipmentSlot} data on an entity should be applied to an armor inventory or general item inventory.
COMMENT
COMMENT @return the target {@link EquipmentSlot.Type} (hand or armor) of this {@link EquipmentSlot}
METHOD method_5926 getArmorStandSlotId ()I
COMMENT @return the index of the inventory slot this {@link EquipmentSlot} occupies in an {@link net.minecraft.entity.decoration.ArmorStandEntity}
METHOD method_5927 getEntitySlotId ()I
COMMENT Returns the index of the inventory slot this {@link EquipmentSlot} should occupy.
COMMENT
COMMENT
COMMENT In the case of {@link EquipmentSlot#MAINHAND} and {@link EquipmentSlot#OFFHAND}, this method will return 0 & 1, respectively.
COMMENT The remaining armor slots re-start at index 0 and end at index 3.
COMMENT
COMMENT
COMMENT To calculate the target index of an inventory slot for an {@link EquipmentSlot} relative to the offset index of an entire
COMMENT inventory, visit {@link EquipmentSlot#getOffsetEntitySlotId(int)}.
COMMENT
COMMENT @return index of the inventory slot this {@link EquipmentSlot} should occupy
CLASS class_1305 Type
COMMENT The type of body item slot an {@link EquipmentSlot} targets.