Package net.minecraft.world.inventory
Class ArmorSlot
java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.world.inventory.ArmorSlot
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocationprivate final LivingEntityprivate final EquipmentSlot -
Constructor Summary
ConstructorsConstructorDescriptionArmorSlot(Container p_344669_, LivingEntity p_343390_, EquipmentSlot p_343712_, int p_344144_, int p_345211_, int p_342796_, ResourceLocation p_343420_) -
Method Summary
Modifier and TypeMethodDescriptionintcom.mojang.datafixers.util.Pair<ResourceLocation, ResourceLocation> booleanbooleanvoidsetByPlayer(ItemStack p_342337_, ItemStack p_345204_) Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getSlotIndex, hasItem, isActive, 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 p_344669_, LivingEntity p_343390_, EquipmentSlot p_343712_, int p_344144_, int p_345211_, int p_342796_, @Nullable ResourceLocation p_343420_)
-
-
Method Details
-
setByPlayer
- Overrides:
setByPlayerin classSlot
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSizein classSlot
-
mayPlace
-
mayPickup
-
getNoItemIcon
- Overrides:
getNoItemIconin classSlot
-