Interface IItemSlot

All Superinterfaces:
ICustomGuiComponent

public interface IItemSlot extends ICustomGuiComponent
  • Method Details

    • hasStack

      boolean hasStack()
    • getStack

      IItemStack getStack()
    • setStack

      IItemSlot setStack(IItemStack itemStack)
    • getGuiType

      int getGuiType()
      This is purely for the visual slot, default is 1
      Returns:
      GuiType 0:None, 1:Normal, 2:Sword, 3:Arrow, 4:Shield, 5:Head, 6:Body, 7:Legs, 8:Feet
    • setGuiType

      IItemSlot setGuiType(int type)
      This is purely for the visual slot, default is 1
      Parameters:
      type - GuiType 0:None, 1:Normal, 2:Sword, 3:Arrow, 4:Shield, 5:Head, 6:Body, 7:Legs, 8:Feet
    • isPlayerSlot

      boolean isPlayerSlot()
    • setOnUpdate

      IItemSlot setOnUpdate(GuiItemSlotUpdate onUpdate)
    • getMCSlot

      net.minecraft.world.inventory.Slot getMCSlot()