Class ArmorSlot
java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.world.inventory.ArmorSlot
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable Identifierprivate final LivingEntityprivate final EquipmentSlot -
Constructor Summary
ConstructorsConstructorDescriptionArmorSlot(Container inventory, LivingEntity owner, EquipmentSlot slot, int slotIndex, int x, int y, @Nullable Identifier emptyIcon) -
Method Summary
Modifier and TypeMethodDescriptionint@Nullable IdentifierbooleanisActive()booleanReturn whether this slot's stack can be taken from this slot.booleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.voidsetByPlayer(ItemStack itemStack, ItemStack previous) Methods inherited from class Slot
allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getSlotIndex, hasItem, isFake, isHighlightable, isSameInventory, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeInsert, safeInsert, safeTake, set, setBackground, setByPlayer, setChanged, tryRemove
-
Field Details
-
owner
-
slot
-
emptyIcon
-
-
Constructor Details
-
ArmorSlot
public ArmorSlot(Container inventory, LivingEntity owner, EquipmentSlot slot, int slotIndex, int x, int y, @Nullable Identifier emptyIcon)
-
-
Method Details
-
setByPlayer
- Overrides:
setByPlayerin classSlot
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSizein classSlot
-
mayPlace
-
isActive
-
mayPickup
-
getNoItemIcon
- Overrides:
getNoItemIconin classSlot
-