Class CustomAdder
java.lang.Object
com.github.imdabigboss.easydatapack.api.CustomAdder
- Direct Known Subclasses:
CustomAdderImpl
This class is used to register custom components. It is to be set as an argument in a function that is passed to
EasyDatapackAPI.registerCustomAdder(Consumer).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidregister(CustomBlock block)Registers a custom block.abstract voidregister(CustomDimension dimension)Registers a custom dimension.abstract voidregister(CustomEnchantment enchantment)Registers a custom enchantment.abstract voidregister(CustomItem item)Registers a custom item.abstract voidregister(org.bukkit.inventory.Recipe recipe)Registers a custom recipe.
-
Constructor Details
-
CustomAdder
public CustomAdder()
-
-
Method Details
-
register
Registers a custom block.- Parameters:
block- the block to register
-
register
Registers a custom dimension.- Parameters:
dimension- the dimension to register- Throws:
CustomDimensionException- if something goes wrong while registering the dimension
-
register
Registers a custom enchantment.- Parameters:
enchantment- the enchantment to register- Throws:
CustomEnchantmentException- if something goes wrong while registering the enchantment
-
register
Registers a custom item.- Parameters:
item- the item to register- Throws:
EasyDatapackException- if something goes wrong while registering the item
-
register
Registers a custom recipe.- Parameters:
recipe- the recipe to register- Throws:
CustomRecipeException- if something goes wrong while registering the recipe
-