Package ch.njol.skript.util.slot
Class ThrowableProjectileSlot
java.lang.Object
ch.njol.skript.util.slot.Slot
ch.njol.skript.util.slot.ThrowableProjectileSlot
- All Implemented Interfaces:
Debuggable
Represents the displayed item of a throwable projectile.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
org.bukkit.inventory.ItemStack
getItem()
boolean
isSameSlot
(Slot o) Checks if given slot is in same position with this.void
setAmount
(int amount) void
setItem
(@Nullable org.bukkit.inventory.ItemStack item) toString
(@Nullable org.bukkit.event.Event e, boolean debug)
-
Constructor Details
-
ThrowableProjectileSlot
public ThrowableProjectileSlot(org.bukkit.entity.ThrowableProjectile projectile)
-
-
Method Details
-
getItem
public org.bukkit.inventory.ItemStack getItem() -
setItem
public void setItem(@Nullable @Nullable org.bukkit.inventory.ItemStack item) -
getAmount
public int getAmount() -
setAmount
public void setAmount(int amount) -
isSameSlot
Description copied from class:Slot
Checks if given slot is in same position with this. Ignores slot contents.- Specified by:
isSameSlot
in classSlot
- Parameters:
o
- Another slot- Returns:
- True if positions equal, false otherwise.
-
toString
- Parameters:
e
- 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
-