Class AttributeTalisman

java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.content.talismans.Talisman
io.github.pylonmc.pylon.content.talismans.AttributeTalisman
All Implemented Interfaces:
io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem, io.github.pylonmc.rebar.item.base.RebarInventoryTicker, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
Direct Known Subclasses:
HealthTalisman, LuckTalisman, WaterBreathingTalisman

public abstract class AttributeTalisman extends Talisman
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.github.pylonmc.rebar.item.RebarItem

    io.github.pylonmc.rebar.item.RebarItem.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem

    io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem.Companion
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
     

    Fields inherited from class Talisman

    level

    Fields inherited from class io.github.pylonmc.rebar.item.RebarItem

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
    AttributeTalisman(@NotNull org.bukkit.inventory.ItemStack stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyEffect(@NotNull org.bukkit.entity.Player player)
    The implementation of this method MUST call super.applyEffect
    protected abstract org.bukkit.attribute.Attribute
     
    void
    removeEffect(@NotNull org.bukkit.entity.Player player)
    The implementation of this method MUST call super.removeEffect

    Methods inherited from class io.github.pylonmc.rebar.item.RebarItem

    equals, fromStack, fromStack, getAddon, getKey, getPlaceholders, getRebarBlock, getResearch, getResearchBypassPermission, getSchema, getSettings, getSettings, getStack, hashCode, isDisabled, isRebarItem, isRebarItem, place, prePlace, register, register, suppressNameWarnings

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.Keyed

    key

    Methods inherited from interface io.github.pylonmc.rebar.item.base.RebarInventoryEffectItem

    getItemKey, onTick
  • Field Details

    • attrBonus

      public final double attrBonus
  • Constructor Details

    • AttributeTalisman

      public AttributeTalisman(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
  • Method Details

    • applyEffect

      public void applyEffect(@NotNull @NotNull org.bukkit.entity.Player player)
      Description copied from class: Talisman
      The implementation of this method MUST call super.applyEffect
      Overrides:
      applyEffect in class Talisman
      Parameters:
      player - The player who the effect is being applied to
    • removeEffect

      public void removeEffect(@NotNull @NotNull org.bukkit.entity.Player player)
      Description copied from class: Talisman
      The implementation of this method MUST call super.removeEffect
      Overrides:
      removeEffect in class Talisman
      Parameters:
      player - The player who the effect is being removed from
    • getAttribute

      protected abstract org.bukkit.attribute.Attribute getAttribute()