Enum Class Beacon.Buff

java.lang.Object
java.lang.Enum<Beacon.Buff>
de.Keyle.MyPet.api.skill.skills.Beacon.Buff
All Implemented Interfaces:
Serializable, Comparable<Beacon.Buff>, Constable
Enclosing interface:
Beacon

public static enum Beacon.Buff extends Enum<Beacon.Buff>
Enumerates the potion-effect buffs that the Beacon skill can apply. Each entry maps a human-readable name and a GUI slot position to the corresponding PotionEffectType.
  • Enum Constant Details

    • Speed

      public static final Beacon.Buff Speed
      The speed( potion effect.
    • Haste

      public static final Beacon.Buff Haste
      The haste( potion effect.
    • Strength

      public static final Beacon.Buff Strength
      The strength( potion effect.
    • JumpBoost

      public static final Beacon.Buff JumpBoost
      The jump boost( potion effect.
    • Regeneration

      public static final Beacon.Buff Regeneration
      The regeneration( potion effect.
    • Resistance

      public static final Beacon.Buff Resistance
      The resistance( potion effect.
    • FireResistance

      public static final Beacon.Buff FireResistance
      The fire resistance( potion effect.
    • WaterBreathing

      public static final Beacon.Buff WaterBreathing
      The water breathing( potion effect.
    • Invisibility

      public static final Beacon.Buff Invisibility
      The invisibility( potion effect.
    • NightVision

      public static final Beacon.Buff NightVision
      The night vision( potion effect.
    • Absorption

      public static final Beacon.Buff Absorption
      The absorption( potion effect.
    • Luck

      public static final Beacon.Buff Luck
      The luck( potion effect.
    • HealthBoost

      public static final Beacon.Buff HealthBoost
      The health boost( potion effect.
  • Method Details

    • values

      public static Beacon.Buff[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Beacon.Buff valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getBuffAtPosition

      public static Beacon.Buff getBuffAtPosition(int position)
      Returns the buff occupying the given GUI slot position, or null if no buff is assigned to that position.
      Parameters:
      position - the GUI slot index
      Returns:
      the matching Buff, or null
    • getByName

      public static Beacon.Buff getByName(String name)
      Looks up a buff by its canonical name (case-sensitive).
      Parameters:
      name - the buff name (e.g. "Speed", "Regeneration")
      Returns:
      the matching Buff, or null if not found
    • getName

      public String getName()
      The buff's name as skilltree JSON refers to it.
      Returns:
      the buff name
    • getPosition

      public int getPosition()
      Slot this buff occupies in the selection menu.
      Returns:
      the menu slot, or -1 when it is not shown
    • getPotionEffectType

      public PotionEffectType getPotionEffectType()
      The vanilla effect this buff applies.
      Returns:
      the potion effect type