Class SlotArmor

java.lang.Object
net.minecraft.world.inventory.Slot
org.cyclops.cyclopscore.inventory.slot.SlotArmor

public class SlotArmor extends net.minecraft.world.inventory.Slot
Slot that is used to hold armor.
  • Field Summary

    Fields inherited from class net.minecraft.world.inventory.Slot

    container, index, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    SlotArmor(net.minecraft.world.Container inventory, int index, int x, int y, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.EquipmentSlot armorType)
    Make a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
    mayPlace(net.minecraft.world.item.ItemStack itemStack)
     

    Methods inherited from class net.minecraft.world.inventory.Slot

    allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, mayPickup, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeInsert, safeInsert, safeTake, set, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SlotArmor

      public SlotArmor(net.minecraft.world.Container inventory, int index, int x, int y, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.EquipmentSlot armorType)
      Make a new instance.
      Parameters:
      inventory - The inventory this slot will be in.
      index - The index of this slot.
      x - X coordinate.
      y - Y coordinate.
      player - The player entity.
      armorType - The armor type.
  • Method Details

    • getMaxStackSize

      public int getMaxStackSize()
      Overrides:
      getMaxStackSize in class net.minecraft.world.inventory.Slot
    • mayPlace

      public boolean mayPlace(net.minecraft.world.item.ItemStack itemStack)
      Overrides:
      mayPlace in class net.minecraft.world.inventory.Slot