Class WorldSettingsFlagsMenu
java.lang.Object
ua.mcchickenstudio.opencreative.menus.AbstractMenu
ua.mcchickenstudio.opencreative.menus.world.settings.WorldSettingsFlagsMenu
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder,InventoryMenu
-
Field Summary
Fields inherited from class ua.mcchickenstudio.opencreative.menus.AbstractMenu
AIR_ITEM, creationTime, DECORATION_ITEM, DECORATION_PANE_ITEM, DISABLED_ITEM, inventory, NO_PERMS_ITEM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillItems(org.bukkit.entity.Player player) static RadioButtonFireSpreadButton(Planet planet) static RadioButtongetBlockChangingFlagButton(Planet planet) static RadioButtongetBlockExplosionFlagButton(Planet planet) static RadioButtongetBlockInteractFlagButton(Planet planet) static RadioButtongetDeathMessagesFlagButton(Planet planet) static RadioButtongetImmediateRespawnFlagButton(Planet planet) static RadioButtongetJoinQuitMessagesFlagButton(Planet planet) static RadioButtongetKeepInventoryFlagButton(Planet planet) static RadioButtongetLikeMessagesFlagButton(Planet planet) static RadioButtongetLocatorBarButton(Planet planet) static RadioButtongetMobInteractFlagButton(Planet planet) static RadioButtongetMobLootFlagButton(Planet planet) static RadioButtongetMobSpawnFlagButton(Planet planet) static RadioButtonstatic RadioButtongetPlayerDamageFlagButton(Planet planet) static RadioButtongetWeatherFlagButton(Planet planet) static RadioButtongetWorldBordersButton(Planet planet) voidonClick(@NotNull org.bukkit.event.inventory.InventoryClickEvent event) Executes when player clicks in inventory.voidonOpen(@NotNull org.bukkit.event.inventory.InventoryOpenEvent event) Executes when player opens inventory and sees it first time.Methods inherited from class ua.mcchickenstudio.opencreative.menus.AbstractMenu
getCreationTime, getInventory, getItem, getRows, getSize, getTitle, isClickedInMenuSlots, isNotEmpty, isPlayerClicked, open, reverse, setItem, setItem, setRows, setTitleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ua.mcchickenstudio.opencreative.menus.InventoryMenu
destroy, onClose
-
Constructor Details
-
WorldSettingsFlagsMenu
public WorldSettingsFlagsMenu()
-
-
Method Details
-
getPlayerDamageFlagButton
-
getMobInteractFlagButton
-
getMobLootFlagButton
-
getKeepInventoryFlagButton
-
getNaturalRegenerationFlagButton
-
getBlockChangingFlagButton
-
getImmediateRespawnFlagButton
-
getLocatorBarButton
-
getDeathMessagesFlagButton
-
getLikeMessagesFlagButton
-
getMobSpawnFlagButton
-
getWorldBordersButton
-
getBlockExplosionFlagButton
-
FireSpreadButton
-
getJoinQuitMessagesFlagButton
-
getBlockInteractFlagButton
-
getWeatherFlagButton
-
fillItems
public void fillItems(org.bukkit.entity.Player player) - Specified by:
fillItemsin classAbstractMenu
-
onClick
public void onClick(@NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent event) Description copied from interface:InventoryMenuExecutes when player clicks in inventory.- Specified by:
onClickin interfaceInventoryMenu- Specified by:
onClickin classAbstractMenu- Parameters:
event- event of click in inventory.
-
onOpen
public void onOpen(@NotNull @NotNull org.bukkit.event.inventory.InventoryOpenEvent event) Description copied from interface:InventoryMenuExecutes when player opens inventory and sees it first time. Useful for playing sounds or setting items.- Specified by:
onOpenin interfaceInventoryMenu- Specified by:
onOpenin classAbstractMenu- Parameters:
event- event of inventory open.
-