Package ch.njol.skript.util.slot
Class DroppedItemSlot
java.lang.Object
ch.njol.skript.util.slot.Slot
ch.njol.skript.util.slot.DroppedItemSlot
- All Implemented Interfaces:
Debuggable
Represents an item of dropped item entity.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
@Nullable 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
-
DroppedItemSlot
public DroppedItemSlot(org.bukkit.entity.Item item)
-
-
Method Details
-
getItem
public @Nullable org.bukkit.inventory.ItemStack getItem() -
setItem
public void setItem(@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 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
-