Class WorldAccessMenu

java.lang.Object
ua.mcchickenstudio.opencreative.menus.AbstractMenu
ua.mcchickenstudio.opencreative.menus.world.WorldAccessMenu
All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder, InventoryMenu, WorldMenu

public final class WorldAccessMenu extends AbstractMenu implements WorldMenu
  • Constructor Details

    • WorldAccessMenu

      public WorldAccessMenu(Planet planet)
  • Method Details

    • fillItems

      public void fillItems(org.bukkit.entity.Player player)
      Specified by:
      fillItems in class AbstractMenu
    • onClick

      public void onClick(@NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent event)
      Description copied from interface: InventoryMenu
      Executes when player clicks in inventory.
      Specified by:
      onClick in interface InventoryMenu
      Specified by:
      onClick in class AbstractMenu
      Parameters:
      event - event of click in inventory.
    • onOpen

      public void onOpen(@NotNull @NotNull org.bukkit.event.inventory.InventoryOpenEvent event)
      Description copied from interface: InventoryMenu
      Executes when player opens inventory and sees it first time. Useful for playing sounds or setting items.
      Specified by:
      onOpen in interface InventoryMenu
      Specified by:
      onOpen in class AbstractMenu
      Parameters:
      event - event of inventory open.
    • getPlanet

      public Planet getPlanet()
      Description copied from interface: WorldMenu
      Returns planet, that owns this menu.
      Specified by:
      getPlanet in interface WorldMenu
      Returns:
      planet for menu.