java.lang.Object
studio.magemonkey.divinity.stats.items.api.ItemLoreStat<String>
studio.magemonkey.divinity.stats.items.attributes.AmmoAttribute

public class AmmoAttribute extends ItemLoreStat<String>
  • Constructor Details

  • Method Details

    • getParameterClass

      @NotNull public Class<String> getParameterClass()
      Specified by:
      getParameterClass in class ItemLoreStat<String>
    • isSingle

      protected boolean isSingle()
      Description copied from class: ItemLoreStat
      Defines 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:
      isSingle in class ItemLoreStat<String>
    • getType

      @NotNull public AmmoAttribute.Type getType()
    • add

      public boolean add(@NotNull org.bukkit.inventory.ItemStack item, @NotNull String value, int line)
      Overrides:
      add in class ItemLoreStat<String>
    • add

      public boolean add(@NotNull org.bukkit.inventory.ItemStack item, int line)
    • getProjectile

      @NotNull public org.bukkit.entity.Projectile getProjectile(@NotNull org.bukkit.entity.LivingEntity shooter)
    • formatValue

      @NotNull public String formatValue(@NotNull org.bukkit.inventory.ItemStack item, @NotNull String value)
      Specified by:
      formatValue in class ItemLoreStat<String>