API Utilities
API Utilities
These are some static utilities to fast get some information.
Note that these static utility methods are for lazy usage, you should use the other API classes instead.
// Check if itemsadder finished loading its items and if they are available
// Normally you should use ItemsAdderFirstLoadEvent instead.
// but sometimes you might also need to check this programmatically.
public static boolean areItemsLoaded()
//Checks if an item is a custom item made with ItemsAdder
public static boolean isCustomItem(ItemStack itemStack)
public static boolean isCustomItem(String customItemName)
//returns the ItemStack of a custom block in world
public static ItemStack getCustomBlock(Block block)
//check if an entity in world is a furniture
public static boolean isFurniture(Entity entity)
//check if an ItemStack is a specific custom item
//(example: check if a pickaxe is 'amethyst_pickaxe')
public static boolean matchCustomItemName(ItemStack itemStack, String customItemName)Old API methods
This is the old API, it's still available and working fine.
Last updated
Was this helpful?