Class KingdomBuildingGUIContext<T extends KingdomBuilding<?>>
java.lang.Object
org.kingdoms.constants.land.abstraction.gui.KingdomBuildingGUIContext<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddOtherButtons(KingdomItemInteractEvent<?> event, org.kingdoms.gui.InteractiveGUI gui, boolean isOwned) asAdmin(boolean admin) voidstatic voidcloseForOthers(KingdomBuilding<?> building, UUID ignoring) org.kingdoms.gui.InteractiveGUIfinalizeGUI(org.kingdoms.gui.InteractiveGUI gui) org.kingdoms.gui.InteractiveGUIfinalizeGUI(org.kingdoms.gui.InteractiveGUI gui, boolean refresh) getEvent()booleanvoidpushRenamingGUI(Structure structure, org.kingdoms.gui.InteractiveGUI gui) static voidputGUI(org.kingdoms.gui.InteractiveGUI gui, KingdomBuilding<?> building, KingdomItemInteractEvent<?> event) refresh(org.kingdoms.gui.InteractiveGUI gui)
-
Constructor Details
-
KingdomBuildingGUIContext
-
-
Method Details
-
asAdmin
-
isRefreshing
public boolean isRefreshing() -
refresh
-
getEvent
-
pushRenamingGUI
-
addOtherButtons
public static void addOtherButtons(KingdomItemInteractEvent<?> event, org.kingdoms.gui.InteractiveGUI gui, boolean isOwned) - Parameters:
isOwned- Whether this building is owned by a kingdom or in an unclaimed land.
-
putGUI
public static void putGUI(org.kingdoms.gui.InteractiveGUI gui, KingdomBuilding<?> building, KingdomItemInteractEvent<?> event) -
closeForOthers
public void closeForOthers() -
closeForOthers
-
finalizeGUI
public org.kingdoms.gui.InteractiveGUI finalizeGUI(org.kingdoms.gui.InteractiveGUI gui) -
finalizeGUI
public org.kingdoms.gui.InteractiveGUI finalizeGUI(org.kingdoms.gui.InteractiveGUI gui, boolean refresh)
-