Class DisplayButton
java.lang.Object
me.hsgamer.hscore.minecraft.gui.button.DisplayButton
A button that is displayed on the inventory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(DisplayButton displayButton) Apply the display button to this instance@Nullable Consumer<ViewerEvent>
Get the action to handle the event@Nullable Item
getItem()
Get the item to displaysetAction
(@Nullable Consumer<ViewerEvent> action) Set the action to handle the eventsetClickAction
(@Nullable Consumer<ClickEvent> action) Set the action to handle the click eventSet the item to display
-
Field Details
-
EMPTY
The empty button
-
-
Constructor Details
-
DisplayButton
public DisplayButton()
-
-
Method Details
-
getItem
Get the item to display- Returns:
- the item
-
setItem
Set the item to display- Parameters:
item
- the item- Returns:
- the current instance
-
getAction
Get the action to handle the event- Returns:
- the action
-
setAction
Set the action to handle the event- Parameters:
action
- the action- Returns:
- the current instance
-
setClickAction
Set the action to handle the click event- Parameters:
action
- the action- Returns:
- the current instance
-
apply
Apply the display button to this instance- Parameters:
displayButton
- the display button
-