Class ChargesAttribute
java.lang.Object
studio.magemonkey.divinity.stats.items.api.ItemLoreStat<int[]>
studio.magemonkey.divinity.stats.items.attributes.ChargesAttribute
-
Field Summary
Fields inherited from class studio.magemonkey.divinity.stats.items.api.ItemLoreStat
dataType, format, keys, metaId, name, placeholder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatValue(org.bukkit.inventory.ItemStack item, int[] value) Class<int[]> protected booleanisSingle()Defines if only ONE variant of this Item Stat can be applied to the item at the same time.voidtakeCharges(org.bukkit.inventory.ItemStack item, int amount, boolean doBreak) Methods inherited from class studio.magemonkey.divinity.stats.items.api.ItemLoreStat
add, getFormat, getFormat, getId, getKey, getKeys, getLoreIndex, getMetaId, getMetaId, getName, getPlaceholder, getRaw, hasPlaceholder, isApplied, preparePlaceholder, remove
-
Constructor Details
-
ChargesAttribute
-
-
Method Details
-
getParameterClass
- Specified by:
getParameterClassin classItemLoreStat<int[]>
-
isSingle
protected boolean isSingle()Description copied from class:ItemLoreStatDefines if only ONE variant of this Item Stat can be applied to the item at the same time. Ammo Stat will return 'TRUE' as bow may have only one ammo type, Damage Stat will return 'FALSE' as item may have multiple damage types.- Overrides:
isSinglein classItemLoreStat<int[]>
-
takeCharges
@NotNull public void takeCharges(@NotNull org.bukkit.inventory.ItemStack item, int amount, boolean doBreak) -
formatValue
- Specified by:
formatValuein classItemLoreStat<int[]>
-