Interface AnvilInventory
public interface AnvilInventory
-
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.inventory.InventoryGets Bukkit'sInventoryassociated to thisAnvilInventoryGets the rename text the user has typed in the renaming section of the anvil.booleanisOpen()Gets if this inventory is currently open.voidopen()Opens the inventory.voidsetItem(int slot, @Nullable org.bukkit.inventory.ItemStack itemStack) Sets anItemStackon one of the three slots.
-
Method Details
-
getBukkitInventory
@NotNull @NotNull org.bukkit.inventory.Inventory getBukkitInventory()Gets Bukkit'sInventoryassociated to thisAnvilInventory- Returns:
- The
Inventory
-
open
void open()Opens the inventory. -
setItem
void setItem(int slot, @Nullable @Nullable org.bukkit.inventory.ItemStack itemStack) Sets anItemStackon one of the three slots.- Parameters:
slot- The slotitemStack- TheItemStack
-
getRenameText
String getRenameText()Gets the rename text the user has typed in the renaming section of the anvil.- Returns:
- The rename text
-
isOpen
boolean isOpen()Gets if this inventory is currently open.- Returns:
- If the inventory is currently open
-