Class HandAttribute
java.lang.Object
studio.magemonkey.divinity.stats.items.api.ItemLoreStat<String>
studio.magemonkey.divinity.stats.items.attributes.HandAttribute
-
Nested Class Summary
Nested Classes -
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 TypeMethodDescriptionbooleanadd(org.bukkit.inventory.ItemStack item, int line) booleanformatValue(org.bukkit.inventory.ItemStack item, String value) getType()protected booleanisSingle()Defines if only ONE variant of this Item Stat can be applied to the item at the same time.Methods inherited from class studio.magemonkey.divinity.stats.items.api.ItemLoreStat
getFormat, getFormat, getId, getKey, getKeys, getLoreIndex, getMetaId, getMetaId, getName, getPlaceholder, getRaw, hasPlaceholder, isApplied, preparePlaceholder, remove
-
Constructor Details
-
HandAttribute
public HandAttribute(@NotNull HandAttribute.Type type, @NotNull String name, @NotNull String format)
-
-
Method Details
-
getParameterClass
- Specified by:
getParameterClassin classItemLoreStat<String>
-
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<String>
-
getType
-
add
- Overrides:
addin classItemLoreStat<String>
-
add
public boolean add(@NotNull org.bukkit.inventory.ItemStack item, int line) -
formatValue
@NotNull public String formatValue(@NotNull org.bukkit.inventory.ItemStack item, @NotNull String value) - Specified by:
formatValuein classItemLoreStat<String>
-