Class OutputButton
java.lang.Object
me.hsgamer.hscore.bukkit.gui.button.impl.OutputButton
- All Implemented Interfaces:
Button
,Initializable
The button that stores the output button for the viewer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable DisplayButton
Display the button@Nullable org.bukkit.inventory.ItemStack
getOutputItem
(@NotNull UUID uuid) Get the output item for the unique idsetDisplayItemFunction
(@NotNull BiFunction<UUID, org.bukkit.inventory.ItemStack, org.bukkit.inventory.ItemStack> displayItemFunction) Set the function to display the item on the GUIvoid
setOutputItem
(@NotNull UUID uuid, @Nullable org.bukkit.inventory.ItemStack itemStack) Set the output item for the unique idvoid
stop()
Stop the objectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.hsgamer.hscore.ui.property.Initializable
init
-
Constructor Details
-
OutputButton
public OutputButton()
-
-
Method Details
-
display
Description copied from interface:Button
Display the button -
stop
public void stop()Description copied from interface:Initializable
Stop the object- Specified by:
stop
in interfaceInitializable
-
setOutputItem
public void setOutputItem(@NotNull @NotNull UUID uuid, @Nullable @Nullable org.bukkit.inventory.ItemStack itemStack) Set the output item for the unique id- Parameters:
uuid
- the unique iditemStack
- the item, or null to remove the output button
-
getOutputItem
@Nullable public @Nullable org.bukkit.inventory.ItemStack getOutputItem(@NotNull @NotNull UUID uuid) Get the output item for the unique id- Parameters:
uuid
- the unique id- Returns:
- the item
-
setDisplayItemFunction
@Contract("_ -> this") public OutputButton setDisplayItemFunction(@NotNull @NotNull BiFunction<UUID, org.bukkit.inventory.ItemStack, org.bukkit.inventory.ItemStack> displayItemFunction) Set the function to display the item on the GUI- Parameters:
displayItemFunction
- the function- Returns:
- this instance
-