Package com.nexomc.nexo.recipes.builders
Class RecipeBuilder
-
- All Implemented Interfaces:
public abstract class RecipeBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private final Inventory
inventory
private final File
configFile
private final YamlConfiguration
config
private final Player
player
private final Component
inventoryTitle
-
Constructor Summary
Constructors Constructor Description RecipeBuilder(Player player, String builderId, Component inventoryTitle)
-
Method Summary
Modifier and Type Method Description final Inventory
getInventory()
final File
getConfigFile()
final YamlConfiguration
getConfig()
final Player
getPlayer()
final Component
getInventoryTitle()
abstract Inventory
createInventory(Player player, Component inventoryTitle)
final Unit
close()
abstract Unit
saveRecipe(String name, String permission)
final Unit
saveConfig()
final Unit
setInventory(Inventory inventory)
final Unit
open()
final Boolean
validSlot(Integer slot, InventoryType.SlotType slotType)
final static RecipeBuilder
currentBuilder(UUID playerUUID)
final static <T extends RecipeBuilder> T
currentBuilder(UUID playerUUID, Class<T> builder)
-
-
Constructor Detail
-
RecipeBuilder
RecipeBuilder(Player player, String builderId, Component inventoryTitle)
-
-
Method Detail
-
getInventory
final Inventory getInventory()
-
getConfigFile
final File getConfigFile()
-
getConfig
final YamlConfiguration getConfig()
-
getPlayer
final Player getPlayer()
-
getInventoryTitle
final Component getInventoryTitle()
-
createInventory
abstract Inventory createInventory(Player player, Component inventoryTitle)
-
saveRecipe
abstract Unit saveRecipe(String name, String permission)
-
saveConfig
final Unit saveConfig()
-
setInventory
final Unit setInventory(Inventory inventory)
-
currentBuilder
final static RecipeBuilder currentBuilder(UUID playerUUID)
-
currentBuilder
final static <T extends RecipeBuilder> T currentBuilder(UUID playerUUID, Class<T> builder)
-
-
-
-