Class GUITool
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
,ToolMenu
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addPageButtons
(org.bukkit.inventory.ItemStack[] contents) static void
cleanUp()
static GUIData
static GUIData
static GUIData
static org.bukkit.inventory.ItemStack
org.bukkit.inventory.Inventory
static GUIData
getProfessMenu
(FabledClass current) static GUIData
getSkillTree
(FabledClass fabledClass) void
handleClick
(org.bukkit.event.inventory.InventoryClickEvent event) static boolean
static void
init()
static boolean
isCastItem
(org.bukkit.inventory.ItemStack itemStack) static boolean
isInUse()
static org.bukkit.inventory.ItemStack
markCastItem
(org.bukkit.inventory.ItemStack itemStack) void
open()
static org.bukkit.inventory.ItemStack
parseItem
(studio.magemonkey.codex.mccore.config.parse.DataSection data) static void
removeCastItems
(org.bukkit.entity.Player player) void
restore()
void
-
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
-
hasData
-
getSkillTree
-
getProfessMenu
-
getDetailsMenu
-
getAttributesMenu
-
getActiveData
-
addPageButtons
public static void addPageButtons(org.bukkit.inventory.ItemStack[] contents) -
open
public void open() -
setType
-
handleClick
public void handleClick(org.bukkit.event.inventory.InventoryClickEvent event) - Specified by:
handleClick
in interfaceToolMenu
-
restore
public void restore() -
getInventory
@NotNull public org.bukkit.inventory.Inventory getInventory()- Specified by:
getInventory
in interfaceorg.bukkit.inventory.InventoryHolder
-
isInUse
public static boolean isInUse()
-