Class WorldEnvironmentColorMenu

java.lang.Object
ua.mcchickenstudio.opencreative.menus.AbstractMenu
ua.mcchickenstudio.opencreative.menus.AbstractListMenu<org.bukkit.Material>
ua.mcchickenstudio.opencreative.menus.world.settings.WorldEnvironmentColorMenu
All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder, InventoryMenu, WorldMenu

public final class WorldEnvironmentColorMenu extends AbstractListMenu<org.bukkit.Material> implements WorldMenu
  • Constructor Details

    • WorldEnvironmentColorMenu

      public WorldEnvironmentColorMenu(org.bukkit.entity.Player player, DevPlanet devPlanet, DevPlatform devPlatform, String type)
  • Method Details

    • 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.
    • getElementIcon

      protected org.bukkit.inventory.ItemStack getElementIcon(org.bukkit.Material material)
      Specified by:
      getElementIcon in class AbstractListMenu<org.bukkit.Material>
    • fillOtherItems

      protected void fillOtherItems()
      Specified by:
      fillOtherItems in class AbstractListMenu<org.bukkit.Material>
    • onCharmsBarClick

      protected void onCharmsBarClick(org.bukkit.event.inventory.InventoryClickEvent event)
      Specified by:
      onCharmsBarClick in class AbstractListMenu<org.bukkit.Material>
    • onElementClick

      protected void onElementClick(org.bukkit.event.inventory.InventoryClickEvent event)
      Specified by:
      onElementClick in class AbstractListMenu<org.bukkit.Material>
    • getElements

      protected List<org.bukkit.Material> getElements()
      Specified by:
      getElements in class AbstractListMenu<org.bukkit.Material>
    • 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.