Package net.okocraft.box.api.model.item
Interface BoxItem
- All Known Subinterfaces:
BoxCustomItem
,BoxDefaultItem
public interface BoxItem
An interface of the item that can deposit or withdraw.
-
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.inventory.ItemStack
Gets the clonedItemStack
.@NotNull Component
Gets the display name of this item as aComponent
.int
Gets the internal id of this item.@NotNull org.bukkit.inventory.ItemStack
Gets the originalItemStack
.@NotNull String
Gets the plain name of this item.
-
Method Details
-
getInternalId
int getInternalId()Gets the internal id of this item.- Returns:
- the internal id of this id
-
getPlainName
Gets the plain name of this item.- Returns:
- the plain name of this item
-
getOriginal
@NotNull @NotNull org.bukkit.inventory.ItemStack getOriginal()Gets the originalItemStack
.The item returned by this method must not be modified.
If you want to change it, you should use
getClonedItem()
.- Returns:
- the original
ItemStack
-
getClonedItem
@NotNull @NotNull org.bukkit.inventory.ItemStack getClonedItem()Gets the clonedItemStack
.- Returns:
- the cloned
ItemStack
-
getDisplayName
Gets the display name of this item as aComponent
.- Returns:
- the display name of this item as a
Component
-