public final class GuiItem extends Object
| Constructor and Description |
|---|
GuiItem(@NotNull org.bukkit.inventory.ItemStack itemStack)
Secondary constructor with no action
|
GuiItem(@NotNull org.bukkit.inventory.ItemStack itemStack,
GuiAction<org.bukkit.event.inventory.InventoryClickEvent> action)
Main constructor of the GuiItem
|
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.inventory.ItemStack |
getItemStack()
Gets the GuiItem's ItemStack
|
void |
setAction(GuiAction<org.bukkit.event.inventory.InventoryClickEvent> action)
Replaces the action of the current GUI Item
|
void |
setItemStack(@NotNull org.bukkit.inventory.ItemStack itemStack)
Replaces the ItemStack of the GUI Item
|
public GuiItem(@NotNull
@NotNull org.bukkit.inventory.ItemStack itemStack,
GuiAction<org.bukkit.event.inventory.InventoryClickEvent> action)
itemStack - The ItemStack to be usedaction - The action to do when clicking on the Itempublic GuiItem(@NotNull
@NotNull org.bukkit.inventory.ItemStack itemStack)
itemStack - The ItemStack to be usedpublic void setItemStack(@NotNull
@NotNull org.bukkit.inventory.ItemStack itemStack)
itemStack - The new ItemStackpublic void setAction(GuiAction<org.bukkit.event.inventory.InventoryClickEvent> action)
action - The new action to setpublic org.bukkit.inventory.ItemStack getItemStack()
Copyright © 2020. All rights reserved.