Item manager
About Item manager.
Access the manager
CustomItemManager.getManager(); // Shortcut of second version.
// OR
Managers.getCustomItemManager();About manager
Finding and getting the item
CustomItemManager manager = CustomItemManager.getManager();
manager.customItem("ID").ifPresent((item) -> {
// Some code
});
// OR
CustomItem item = manager.customItem("ID").orElse(null); // If you don't like lambdaCreating ItemStack
Checking if item is custom
Register the item
Last updated