Class ThrowableProjectileSlot

java.lang.Object
ch.njol.skript.util.slot.Slot
ch.njol.skript.util.slot.ThrowableProjectileSlot
All Implemented Interfaces:
Debuggable

public class ThrowableProjectileSlot extends Slot
Represents the displayed item of a throwable projectile.
  • Constructor Details

    • ThrowableProjectileSlot

      public ThrowableProjectileSlot(org.bukkit.entity.ThrowableProjectile projectile)
  • Method Details

    • getItem

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

      public void setItem(@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 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.
    • toString

      public String toString(@Nullable org.bukkit.event.Event e, boolean debug)
      Parameters:
      e - The event to get information to. 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