Package net.minecraft.world.inventory
Class ArmorSlot
java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.world.inventory.ArmorSlot
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
private final LivingEntity
private final EquipmentSlot
-
Constructor Summary
ConstructorDescriptionArmorSlot
(Container p_345898_, LivingEntity p_345231_, EquipmentSlot p_345728_, int p_345121_, int p_346000_, int p_346095_, ResourceLocation p_344841_) -
Method Summary
Modifier and TypeMethodDescriptionint
com.mojang.datafixers.util.Pair
<ResourceLocation, ResourceLocation> boolean
boolean
void
setByPlayer
(ItemStack p_345031_, ItemStack p_344961_) 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_345898_, LivingEntity p_345231_, EquipmentSlot p_345728_, int p_345121_, int p_346000_, int p_346095_, @Nullable ResourceLocation p_344841_)
-
-
Method Details
-
setByPlayer
- Overrides:
setByPlayer
in classSlot
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSize
in classSlot
-
mayPlace
-
mayPickup
-
getNoItemIcon
- Overrides:
getNoItemIcon
in classSlot
-