java.lang.Object
com.zetaplugins.lifestealz.util.customitems.customitemdata.CustomItemData
Direct Known Subclasses:
CustomHeartItemData, CustomReviveBeaconItemData

public class CustomItemData extends Object
  • Constructor Details

    • CustomItemData

      public CustomItemData(String itemId) throws IllegalArgumentException
      Creates a new CustomItemData object for the given item ID.
      Parameters:
      itemId - the ID of the custom item
      Throws:
      IllegalArgumentException - if the custom item with the given ID does not exist
  • Method Details

    • getConfigurationSection

      protected ConfigurationSection getConfigurationSection()
      Returns the configuration section for this custom item.
      Returns:
      the configuration section for this custom item
    • getSound

    • getItemId

      public String getItemId()
    • getName

      public String getName()
    • getLore

      public List<String> getLore()
    • getMaterial

      public Material getMaterial()
    • isEnchanted

      public boolean isEnchanted()
    • getCustomItemType

      public CustomItemType getCustomItemType()
    • isCraftable

      public boolean isCraftable()
    • requiresPermission

      public boolean requiresPermission()
    • getPermission

      public String getPermission()
    • isInvulnerable

      public boolean isInvulnerable()
    • isDespawnable

      public boolean isDespawnable()
    • getWhitelistedWorlds

      public List<String> getWhitelistedWorlds()
    • isAllowedInWorld

      public boolean isAllowedInWorld(String worldName)
      Checks if the custom item is allowed in the given world.
      Parameters:
      worldName - the name of the world to check
      Returns:
      true if the item is allowed in the world, false otherwise