Class InternalRegistration
java.lang.Object
com.github.darksoulq.ner.plugin.InternalRegistration
- All Implemented Interfaces:
Registration
-
Nested Class Summary
Nested classes/interfaces inherited from interface Registration
Registration.NamespaceContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCatalyst(Class<?> recipeClass, org.bukkit.inventory.ItemStack catalyst) voidaddCategory(RecipeCategory<?> category) <T> voidaddCraftabilityChecker(Class<T> recipeClass, CraftabilityChecker<T> checker) voidaddDeduplicator(Function<org.bukkit.inventory.ItemStack, org.bukkit.inventory.ItemStack> deduplicator) voidaddFilter(String prefix, BiFunction<String, org.bukkit.inventory.ItemStack, Boolean> filter) voidvoidaddItem(org.bukkit.inventory.ItemStack item) voidaddItemGroup(String id, net.kyori.adventure.text.Component title, List<org.bukkit.inventory.ItemStack> items, boolean animate) voidaddModifier(BiFunction<org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.inventory.ItemStack> modifier) voidaddNestedFilter(String prefix, Function<Predicate<org.bukkit.inventory.ItemStack>, Predicate<org.bukkit.inventory.ItemStack>> operator) voidvoidaddVisibilityRule(BiPredicate<org.bukkit.entity.Player, org.bukkit.inventory.ItemStack> rule) voidremoveItem(org.bukkit.inventory.ItemStack item) voidremoveItems(Predicate<org.bukkit.inventory.ItemStack> predicate) voidremoveRecipe(Object recipe) voidremoveRecipes(Predicate<Object> predicate) voidsetNamespace(String namespace, org.bukkit.inventory.ItemStack item) voidsetNamespaceComparator(String namespace, Comparator<com.github.darksoulq.abyssallib.common.util.Either<org.bukkit.inventory.ItemStack, ItemGroup>> comparator) voidsetNamespaces(Consumer<Registration.NamespaceContext> provider)
-
Constructor Details
-
InternalRegistration
public InternalRegistration()
-
-
Method Details
-
addCategory
- Specified by:
addCategoryin interfaceRegistration
-
addCatalyst
- Specified by:
addCatalystin interfaceRegistration
-
setNamespace
- Specified by:
setNamespacein interfaceRegistration
-
setNamespaces
- Specified by:
setNamespacesin interfaceRegistration
-
addItem
public void addItem(org.bukkit.inventory.ItemStack item) - Specified by:
addItemin interfaceRegistration
-
addItem
- Specified by:
addItemin interfaceRegistration
-
removeItem
public void removeItem(org.bukkit.inventory.ItemStack item) - Specified by:
removeItemin interfaceRegistration
-
removeItems
- Specified by:
removeItemsin interfaceRegistration
-
addItemGroup
public void addItemGroup(String id, net.kyori.adventure.text.Component title, List<org.bukkit.inventory.ItemStack> items, boolean animate) - Specified by:
addItemGroupin interfaceRegistration
-
addDeduplicator
public void addDeduplicator(Function<org.bukkit.inventory.ItemStack, org.bukkit.inventory.ItemStack> deduplicator) - Specified by:
addDeduplicatorin interfaceRegistration
-
addModifier
public void addModifier(BiFunction<org.bukkit.entity.Player, org.bukkit.inventory.ItemStack, org.bukkit.inventory.ItemStack> modifier) - Specified by:
addModifierin interfaceRegistration
-
addVisibilityRule
public void addVisibilityRule(BiPredicate<org.bukkit.entity.Player, org.bukkit.inventory.ItemStack> rule) - Specified by:
addVisibilityRulein interfaceRegistration
-
addFilter
public void addFilter(String prefix, BiFunction<String, org.bukkit.inventory.ItemStack, Boolean> filter) - Specified by:
addFilterin interfaceRegistration
-
addNestedFilter
public void addNestedFilter(String prefix, Function<Predicate<org.bukkit.inventory.ItemStack>, Predicate<org.bukkit.inventory.ItemStack>> operator) - Specified by:
addNestedFilterin interfaceRegistration
-
setNamespaceComparator
public void setNamespaceComparator(String namespace, Comparator<com.github.darksoulq.abyssallib.common.util.Either<org.bukkit.inventory.ItemStack, ItemGroup>> comparator) - Specified by:
setNamespaceComparatorin interfaceRegistration
-
addRecipe
- Specified by:
addRecipein interfaceRegistration
-
removeRecipe
- Specified by:
removeRecipein interfaceRegistration
-
removeRecipes
- Specified by:
removeRecipesin interfaceRegistration
-
addCraftabilityChecker
- Specified by:
addCraftabilityCheckerin interfaceRegistration
-