Class DisplayEntitySlot

java.lang.Object
ch.njol.skript.util.slot.Slot
ch.njol.skript.util.slot.DisplayEntitySlot
All Implemented Interfaces:
Debuggable, AnyAmount, AnyNamed, AnyProvider

public class DisplayEntitySlot extends Slot
  • Constructor Details

    • DisplayEntitySlot

      public DisplayEntitySlot(org.bukkit.entity.ItemDisplay display)
  • Method Details

    • getItem

      @Nullable public @Nullable org.bukkit.inventory.ItemStack getItem()
      Specified by:
      getItem in class Slot
    • setItem

      public void setItem(@Nullable @Nullable org.bukkit.inventory.ItemStack item)
      Specified by:
      setItem in class Slot
    • getAmount

      public int getAmount()
      Specified by:
      getAmount in class Slot
    • setAmount

      public void setAmount(int amount)
      Specified by:
      setAmount in class Slot
    • isSameSlot

      public boolean isSameSlot(Slot other)
      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:
      other - Another slot
      Returns:
      True if positions equal, false otherwise.
    • toString

      public String toString(@Nullable @Nullable org.bukkit.event.Event event, boolean debug)
      Parameters:
      event - The event to get information from. This is always null if debug == false.
      debug - If true this should print more information, if false this should print what is shown to the end user
      Returns:
      String representation of this object