Package me.hsgamer.hscore.minestom.gui
Class MinestomGUIDisplay
java.lang.Object
me.hsgamer.hscore.ui.BaseDisplay<H>
me.hsgamer.hscore.minecraft.gui.GUIDisplay<H>
me.hsgamer.hscore.minecraft.gui.InventoryGUIDisplay<MinestomGUIHolder>
me.hsgamer.hscore.minestom.gui.MinestomGUIDisplay
- All Implemented Interfaces:
me.hsgamer.hscore.ui.Display,me.hsgamer.hscore.ui.property.Initializable,me.hsgamer.hscore.ui.property.Updatable
The
GUIDisplay for Minestom-
Field Summary
Fields inherited from class me.hsgamer.hscore.ui.BaseDisplay
holder, uuid -
Constructor Summary
ConstructorsConstructorDescriptionMinestomGUIDisplay(@NotNull UUID uuid, @NotNull MinestomGUIHolder holder) Create a new display -
Method Summary
Modifier and TypeMethodDescriptionprotected void@Nullable DelegatingInventoryGet the inventory of the displayprotected intprotected voidvoidopen()protected voidMethods inherited from class me.hsgamer.hscore.minecraft.gui.InventoryGUIDisplay
getViewedButton, getViewedButtons, handleClickEvent, init, stop, updateMethods inherited from class me.hsgamer.hscore.ui.BaseDisplay
getHolder, getUniqueIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.hsgamer.hscore.ui.Display
handleEvent, handleEvent
-
Constructor Details
-
MinestomGUIDisplay
Create a new display- Parameters:
uuid- the unique idholder- the holder
-
-
Method Details
-
initInventory
protected void initInventory()- Specified by:
initInventoryin classInventoryGUIDisplay<MinestomGUIHolder>
-
clearInventory
protected void clearInventory()- Specified by:
clearInventoryin classInventoryGUIDisplay<MinestomGUIHolder>
-
getInventorySize
protected int getInventorySize()- Specified by:
getInventorySizein classInventoryGUIDisplay<MinestomGUIHolder>
-
setButton
- Specified by:
setButtonin classInventoryGUIDisplay<MinestomGUIHolder>
-
open
public void open()- Specified by:
openin classGUIDisplay<MinestomGUIHolder>
-
getInventory
Get the inventory of the display- Returns:
- the inventory
-