Package me.hsgamer.hscore.bukkit.gui
Class BukkitGUIDisplay
java.lang.Object
me.hsgamer.hscore.ui.BaseDisplay<H>
me.hsgamer.hscore.minecraft.gui.GUIDisplay<H>
me.hsgamer.hscore.minecraft.gui.InventoryGUIDisplay<BukkitGUIHolder>
me.hsgamer.hscore.bukkit.gui.BukkitGUIDisplay
- All Implemented Interfaces:
Display
,Initializable
,Updatable
,org.bukkit.inventory.InventoryHolder
public class BukkitGUIDisplay
extends InventoryGUIDisplay<BukkitGUIHolder>
implements org.bukkit.inventory.InventoryHolder
The
GUIDisplay
for Bukkit-
Field Summary
Fields inherited from class me.hsgamer.hscore.ui.BaseDisplay
holder, uuid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Clear the inventoryorg.bukkit.inventory.Inventory
protected 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
-
BukkitGUIDisplay
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<BukkitGUIHolder>
-
clearInventory
protected void clearInventory()Description copied from class:InventoryGUIDisplay
Clear the inventory- Specified by:
clearInventory
in classInventoryGUIDisplay<BukkitGUIHolder>
-
getInventorySize
Description copied from class:InventoryGUIDisplay
Get the size of the inventory- Specified by:
getInventorySize
in classInventoryGUIDisplay<BukkitGUIHolder>
- Returns:
- the size
-
setButton
Description copied from class:InventoryGUIDisplay
Get the title of the inventory- Specified by:
setButton
in classInventoryGUIDisplay<BukkitGUIHolder>
- Parameters:
slot
- the slotitem
- the item
-
open
public void open()Description copied from class:GUIDisplay
Open the display- Specified by:
open
in classGUIDisplay<BukkitGUIHolder>
-
getInventory
public org.bukkit.inventory.Inventory getInventory()- Specified by:
getInventory
in interfaceorg.bukkit.inventory.InventoryHolder
-