Class RecipeEventManager
-
- All Implemented Interfaces:
-
org.bukkit.event.Listener
public final class RecipeEventManager implements Listener
-
-
Constructor Summary
Constructors Constructor Description RecipeEventManager(Object2ObjectOpenHashMap<CustomRecipe, String> permissionsPerRecipe, ObjectOpenHashSet<CustomRecipe> whitelistedCraftRecipes, ObjectArrayList<CustomRecipe> whitelistedCraftRecipesOrdered)
-
Method Summary
Modifier and Type Method Description final UnitregisterEvents()final UnitonTrade(InventoryClickEvent $self)final UnitonCrafted(PrepareItemCraftEvent $self)final UnitonJoin(PlayerJoinEvent $self)final UnitresetRecipes()final UnitaddPermissionRecipe(CustomRecipe recipe, String permission)final UnitwhitelistRecipe(CustomRecipe recipe)final List<CustomRecipe>permittedRecipes(CommandSender sender)final Array<String>permittedRecipeNames(CommandSender sender)final BooleanhasPermission(CommandSender sender, CustomRecipe recipe)final static RecipeEventManagerinstance()-
-
Constructor Detail
-
RecipeEventManager
RecipeEventManager(Object2ObjectOpenHashMap<CustomRecipe, String> permissionsPerRecipe, ObjectOpenHashSet<CustomRecipe> whitelistedCraftRecipes, ObjectArrayList<CustomRecipe> whitelistedCraftRecipesOrdered)
-
-
Method Detail
-
registerEvents
final Unit registerEvents()
-
resetRecipes
final Unit resetRecipes()
-
addPermissionRecipe
final Unit addPermissionRecipe(CustomRecipe recipe, String permission)
-
whitelistRecipe
final Unit whitelistRecipe(CustomRecipe recipe)
-
permittedRecipes
final List<CustomRecipe> permittedRecipes(CommandSender sender)
-
permittedRecipeNames
final Array<String> permittedRecipeNames(CommandSender sender)
-
hasPermission
final Boolean hasPermission(CommandSender sender, CustomRecipe recipe)
-
instance
final static RecipeEventManager instance()
-
-
-
-