Class SlotWithIndex

java.lang.Object
ch.njol.skript.util.slot.Slot
ch.njol.skript.util.slot.SlotWithIndex
All Implemented Interfaces:
Debuggable
Direct Known Subclasses:
EquipmentSlot, InventorySlot

public abstract class SlotWithIndex extends Slot
Represents a slot which has index.
  • Constructor Details

    • SlotWithIndex

      public SlotWithIndex()
  • Method Details

    • getIndex

      public abstract int getIndex()
      Gets an index of this slot.
      Returns:
      Index of the slot.
    • getRawIndex

      public int getRawIndex()
      Gets the raw index of this slot.
      Returns:
      Raw index of the slot.
    • isSameSlot

      public boolean isSameSlot(Slot o)
      Description copied from class: Slot
      Checks if given slot is in same position with this. Ignores slot contents.
      Specified by:
      isSameSlot in class Slot
      Parameters:
      o - Another slot
      Returns:
      True if positions equal, false otherwise.