Class EasyDatapackAPI
java.lang.Object
com.github.imdabigboss.easydatapack.api.EasyDatapackAPI
This class is used to get functions from the instance of
EasyDatapackBase.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull YmlConfigGets the EasyDatapack config.static @NonNull BlockManagerGets the EasyDatapack block manager.static @NonNull DimensionManagerGets the EasyDatapack dimension manager.static @NonNull EnchantmentManagerGets the EasyDatapack enchantment manager.static @NonNull ItemManagerGets the EasyDatapack item manager.static @NonNull MapManagerGets the EasyDatapack map manager.static @NonNull PacketUtilGets the EasyDatapack packet utility.static @NonNull RecipeManagerGets the EasyDatapack recipe manager.static voidregisterCustomAdder(@NonNull Consumer<CustomAdder> customAdder)Registers function that takes aCustomAdderas an argument and that will be called when EasyDatapack is enabled to register custom components.static voidset(@NonNull EasyDatapackBase api)Sets the EasyDatapack API instace.
-
Field Details
-
NAMESPACE_KEY
The EasyDatapack namespace key.- See Also:
- Constant Field Values
-
-
Constructor Details
-
EasyDatapackAPI
public EasyDatapackAPI()
-
-
Method Details
-
set
Sets the EasyDatapack API instace. This should only be called by EasyDatapack.- Parameters:
api- the EasyDatapack API instance
-
registerCustomAdder
Registers function that takes aCustomAdderas an argument and that will be called when EasyDatapack is enabled to register custom components.- Parameters:
customAdder- the custom adder
-
getAPIConfig
Gets the EasyDatapack config.- Returns:
- the EasyDatapack config
-
getPacketUtil
Gets the EasyDatapack packet utility.- Returns:
- the EasyDatapack packet utility
-
getRecipeManager
Gets the EasyDatapack recipe manager.- Returns:
- the EasyDatapack recipe manager
-
getBlockManager
Gets the EasyDatapack block manager.- Returns:
- the EasyDatapack block manager
-
getDimensionManager
Gets the EasyDatapack dimension manager.- Returns:
- the EasyDatapack dimension manager
-
getEnchantmentManager
Gets the EasyDatapack enchantment manager.- Returns:
- the EasyDatapack enchantment manager
-
getItemManager
Gets the EasyDatapack item manager.- Returns:
- the EasyDatapack item manager
-
getMapManager
Gets the EasyDatapack map manager.- Returns:
- the EasyDatapack map manager
-