Class ItemModelHandler
java.lang.Object
com.bencodez.advancedcore.api.item.ItemModelHandler
Handler for item model customization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.inventory.ItemStackgetItemWithModel(org.bukkit.inventory.ItemStack item, String model) Sets a custom model on an item.static StringgetModel(org.bukkit.inventory.ItemStack item) Gets the model identifier from an item.
-
Constructor Details
-
ItemModelHandler
public ItemModelHandler()
-
-
Method Details
-
getItemWithModel
public static org.bukkit.inventory.ItemStack getItemWithModel(org.bukkit.inventory.ItemStack item, String model) Sets a custom model on an item.- Parameters:
item- the item to modifymodel- the model identifier- Returns:
- the modified item
-
getModel
Gets the model identifier from an item.- Parameters:
item- the item to check- Returns:
- the model identifier, or null if none
-