Class ItemModelHandler

java.lang.Object
com.bencodez.advancedcore.api.item.ItemModelHandler

public class ItemModelHandler extends Object
Handler for item model customization.
  • 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 modify
      model - the model identifier
      Returns:
      the modified item
    • getModel

      public static String getModel(org.bukkit.inventory.ItemStack item)
      Gets the model identifier from an item.
      Parameters:
      item - the item to check
      Returns:
      the model identifier, or null if none