Class CustomAdder

java.lang.Object
com.github.imdabigboss.easydatapack.api.CustomAdder
Direct Known Subclasses:
CustomAdderImpl

public abstract class CustomAdder extends Object
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 Details

    • CustomAdder

      public CustomAdder()
  • Method Details

    • register

      public abstract void register(CustomBlock block)
      Registers a custom block.
      Parameters:
      block - the block to register
    • register

      public abstract void register(CustomDimension dimension) throws CustomDimensionException
      Registers a custom dimension.
      Parameters:
      dimension - the dimension to register
      Throws:
      CustomDimensionException - if something goes wrong while registering the dimension
    • register

      public abstract void register(CustomEnchantment enchantment) throws CustomEnchantmentException
      Registers a custom enchantment.
      Parameters:
      enchantment - the enchantment to register
      Throws:
      CustomEnchantmentException - if something goes wrong while registering the enchantment
    • register

      public abstract void register(CustomItem item) throws EasyDatapackException
      Registers a custom item.
      Parameters:
      item - the item to register
      Throws:
      EasyDatapackException - if something goes wrong while registering the item
    • register

      public abstract void register(org.bukkit.inventory.Recipe recipe) throws CustomRecipeException
      Registers a custom recipe.
      Parameters:
      recipe - the recipe to register
      Throws:
      CustomRecipeException - if something goes wrong while registering the recipe