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:
me.hsgamer.hscore.ui.Display,me.hsgamer.hscore.ui.property.Initializable,me.hsgamer.hscore.ui.property.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.minecraft.gui.GUIDisplay
viewedButtonsFields inherited from class me.hsgamer.hscore.ui.BaseDisplay
holder, uuid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidorg.bukkit.inventory.Inventoryprotected intvoidinit()protected voidbooleanShould the display force the viewers to update their inventoryvoidopen()voidscheduleReopen(CloseEvent event) protected voidsetForceUpdate(boolean forceUpdate) Should the display force the viewers to update their inventoryvoidstop()voidupdate()Methods inherited from class me.hsgamer.hscore.minecraft.gui.GUIDisplay
handleClickEventMethods 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
-
BukkitGUIDisplay
Create a new display- Parameters:
uuid- the unique idholder- the holder
-
-
Method Details
-
isForceUpdate
public boolean isForceUpdate()Should the display force the viewers to update their inventory- Returns:
- true if it should
-
setForceUpdate
Should the display force the viewers to update their inventory- Parameters:
forceUpdate- true to force them- Returns:
thisfor builder chain
-
initInventory
protected void initInventory()- Specified by:
initInventoryin classInventoryGUIDisplay<BukkitGUIHolder>
-
clearInventory
protected void clearInventory()- Specified by:
clearInventoryin classInventoryGUIDisplay<BukkitGUIHolder>
-
getInventorySize
protected int getInventorySize()- Specified by:
getInventorySizein classInventoryGUIDisplay<BukkitGUIHolder>
-
setButton
- Specified by:
setButtonin classInventoryGUIDisplay<BukkitGUIHolder>
-
scheduleReopen
- Specified by:
scheduleReopenin classGUIDisplay<BukkitGUIHolder>
-
open
public void open()- Specified by:
openin classGUIDisplay<BukkitGUIHolder>
-
init
public void init()- Specified by:
initin interfaceme.hsgamer.hscore.ui.property.Initializable- Overrides:
initin classInventoryGUIDisplay<BukkitGUIHolder>
-
stop
public void stop()- Specified by:
stopin interfaceme.hsgamer.hscore.ui.property.Initializable- Overrides:
stopin classInventoryGUIDisplay<BukkitGUIHolder>
-
getInventory
public org.bukkit.inventory.Inventory getInventory()- Specified by:
getInventoryin interfaceorg.bukkit.inventory.InventoryHolder
-
update
public void update()- Specified by:
updatein interfaceme.hsgamer.hscore.ui.property.Updatable- Overrides:
updatein classInventoryGUIDisplay<BukkitGUIHolder>
-