Class EasyDatapackAPI

java.lang.Object
com.github.imdabigboss.easydatapack.api.EasyDatapackAPI

public class EasyDatapackAPI extends Object
This class is used to get functions from the instance of EasyDatapackBase.
  • Field Details

  • Constructor Details

    • EasyDatapackAPI

      public EasyDatapackAPI()
  • Method Details

    • set

      public static void set(@NonNull EasyDatapackBase api)
      Sets the EasyDatapack API instace. This should only be called by EasyDatapack.
      Parameters:
      api - the EasyDatapack API instance
    • registerCustomAdder

      public static void registerCustomAdder(@NonNull Consumer<CustomAdder> customAdder)
      Registers function that takes a CustomAdder as an argument and that will be called when EasyDatapack is enabled to register custom components.
      Parameters:
      customAdder - the custom adder
    • getAPIConfig

      public static @NonNull YmlConfig getAPIConfig()
      Gets the EasyDatapack config.
      Returns:
      the EasyDatapack config
    • getPacketUtil

      public static @NonNull PacketUtil getPacketUtil()
      Gets the EasyDatapack packet utility.
      Returns:
      the EasyDatapack packet utility
    • getRecipeManager

      public static @NonNull RecipeManager getRecipeManager()
      Gets the EasyDatapack recipe manager.
      Returns:
      the EasyDatapack recipe manager
    • getBlockManager

      public static @NonNull BlockManager getBlockManager()
      Gets the EasyDatapack block manager.
      Returns:
      the EasyDatapack block manager
    • getDimensionManager

      public static @NonNull DimensionManager getDimensionManager()
      Gets the EasyDatapack dimension manager.
      Returns:
      the EasyDatapack dimension manager
    • getEnchantmentManager

      public static @NonNull EnchantmentManager getEnchantmentManager()
      Gets the EasyDatapack enchantment manager.
      Returns:
      the EasyDatapack enchantment manager
    • getItemManager

      public static @NonNull ItemManager getItemManager()
      Gets the EasyDatapack item manager.
      Returns:
      the EasyDatapack item manager
    • getMapManager

      public static @NonNull MapManager getMapManager()
      Gets the EasyDatapack map manager.
      Returns:
      the EasyDatapack map manager