Package ch.njol.skript.util.slot
Class ItemFrameSlot
java.lang.Object
ch.njol.skript.util.slot.Slot
ch.njol.skript.util.slot.ItemFrameSlot
- All Implemented Interfaces:
Debuggable
Represents contents of an item frame.
-
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
-
ItemFrameSlot
public ItemFrameSlot(org.bukkit.entity.ItemFrame frame)
-
-
Method Details
-
getItem
@Nullable public @Nullable 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
-