Class CustomItemData
java.lang.Object
com.zetaplugins.lifestealz.util.customitems.customitemdata.CustomItemData
- Direct Known Subclasses:
CustomHeartItemData
,CustomReviveBeaconItemData
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCustomItemData
(String itemId) Creates a new CustomItemData object for the given item ID. -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigurationSection
Returns the configuration section for this custom item.getLore()
getName()
getSound()
boolean
isAllowedInWorld
(String worldName) Checks if the custom item is allowed in the given world.boolean
boolean
boolean
boolean
boolean
-
Constructor Details
-
CustomItemData
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
Returns the configuration section for this custom item.- Returns:
- the configuration section for this custom item
-
getSound
-
getItemId
-
getName
-
getLore
-
getMaterial
-
isEnchanted
public boolean isEnchanted() -
getCustomItemType
-
isCraftable
public boolean isCraftable() -
requiresPermission
public boolean requiresPermission() -
getPermission
-
isInvulnerable
public boolean isInvulnerable() -
isDespawnable
public boolean isDespawnable() -
getWhitelistedWorlds
-
isAllowedInWorld
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
-