Class GUITool

java.lang.Object
studio.magemonkey.fabled.gui.tool.GUITool
All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder, ToolMenu

public class GUITool extends Object implements ToolMenu
Fabled studio.magemonkey.fabled.gui.tool.GUITool

The MIT License (MIT)

Copyright (c) 2024 MageMonkeyStudio

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

  • Constructor Details

    • GUITool

      public GUITool(org.bukkit.entity.Player player)
  • Method Details

    • init

      public static void init()
    • parseItem

      public static org.bukkit.inventory.ItemStack parseItem(studio.magemonkey.codex.mccore.config.parse.DataSection data)
    • markCastItem

      public static org.bukkit.inventory.ItemStack markCastItem(@Nullable org.bukkit.inventory.ItemStack itemStack)
    • isCastItem

      public static boolean isCastItem(@Nullable org.bukkit.inventory.ItemStack itemStack)
    • removeCastItems

      public static void removeCastItems(org.bukkit.entity.Player player)
    • cleanUp

      public static void cleanUp()
    • getIcon

      public static org.bukkit.inventory.ItemStack getIcon(String key)
    • hasData

      public static boolean hasData(String key)
    • getSkillTree

      public static GUIData getSkillTree(FabledClass fabledClass)
    • getProfessMenu

      public static GUIData getProfessMenu(FabledClass current)
    • getDetailsMenu

      public static GUIData getDetailsMenu()
    • getAttributesMenu

      public static GUIData getAttributesMenu()
    • getActiveData

      public static GUIData getActiveData()
    • addPageButtons

      public static void addPageButtons(org.bukkit.inventory.ItemStack[] contents)
    • open

      public void open()
    • setType

      public void setType(GUIType type)
    • handleClick

      public void handleClick(org.bukkit.event.inventory.InventoryClickEvent event)
      Specified by:
      handleClick in interface ToolMenu
    • restore

      public void restore()
      Specified by:
      restore in interface ToolMenu
    • getInventory

      @NotNull public org.bukkit.inventory.Inventory getInventory()
      Specified by:
      getInventory in interface org.bukkit.inventory.InventoryHolder
    • isInUse

      public static boolean isInUse()