Class ArmorSlot

java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.world.inventory.ArmorSlot

class ArmorSlot extends Slot
  • Field Details

  • Constructor Details

  • Method Details

    • setByPlayer

      public void setByPlayer(ItemStack p_345031_, ItemStack p_344961_)
      Overrides:
      setByPlayer in class Slot
    • getMaxStackSize

      public int getMaxStackSize()
      Overrides:
      getMaxStackSize in class Slot
    • mayPlace

      public boolean mayPlace(ItemStack p_345029_)
      Description copied from class: Slot
      Check if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.
      Overrides:
      mayPlace in class Slot
    • isActive

      public boolean isActive()
      Overrides:
      isActive in class Slot
    • mayPickup

      public boolean mayPickup(Player p_345575_)
      Description copied from class: Slot
      Return whether this slot's stack can be taken from this slot.
      Overrides:
      mayPickup in class Slot
    • getNoItemIcon

      @Nullable public ResourceLocation getNoItemIcon()
      Overrides:
      getNoItemIcon in class Slot