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:
Display
,Initializable
,Updatable
The
GUIDisplay
for Minestom-
Field Summary
Fields inherited from class me.hsgamer.hscore.ui.BaseDisplay
holder, uuid
-
Constructor Summary
ConstructorDescriptionMinestomGUIDisplay
(@NotNull UUID uuid, @NotNull MinestomGUIHolder holder) Create a new display -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Clear the inventory@Nullable DelegatingInventory
Get the inventory of the displayprotected InventorySize
Get the size of the inventoryprotected void
Initialize the inventoryvoid
open()
Open the displayprotected void
Get the title of the inventoryMethods inherited from class me.hsgamer.hscore.minecraft.gui.InventoryGUIDisplay
getViewedButton, getViewedButtons, handleEvent, init, stop, update
Methods inherited from class me.hsgamer.hscore.ui.BaseDisplay
getHolder, getUniqueId
-
Constructor Details
-
MinestomGUIDisplay
Create a new display- Parameters:
uuid
- the unique idholder
- the holder
-
-
Method Details
-
initInventory
protected void initInventory()Description copied from class:InventoryGUIDisplay
Initialize the inventory- Specified by:
initInventory
in classInventoryGUIDisplay<MinestomGUIHolder>
-
clearInventory
protected void clearInventory()Description copied from class:InventoryGUIDisplay
Clear the inventory- Specified by:
clearInventory
in classInventoryGUIDisplay<MinestomGUIHolder>
-
getInventorySize
Description copied from class:InventoryGUIDisplay
Get the size of the inventory- Specified by:
getInventorySize
in classInventoryGUIDisplay<MinestomGUIHolder>
- Returns:
- the size
-
setButton
Description copied from class:InventoryGUIDisplay
Get the title of the inventory- Specified by:
setButton
in classInventoryGUIDisplay<MinestomGUIHolder>
- Parameters:
slot
- the slotitem
- the item
-
open
public void open()Description copied from class:GUIDisplay
Open the display- Specified by:
open
in classGUIDisplay<MinestomGUIHolder>
-
getInventory
Get the inventory of the display- Returns:
- the inventory
-