Package de.Keyle.MyPet.api.skill.skills
Enum Class Beacon.Buff
- All Implemented Interfaces:
Serializable,Comparable<Beacon.Buff>,Constable
- Enclosing interface:
Beacon
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe absorption( potion effect.The fire resistance( potion effect.The haste( potion effect.The health boost( potion effect.The invisibility( potion effect.The jump boost( potion effect.The luck( potion effect.The night vision( potion effect.The regeneration( potion effect.The resistance( potion effect.The speed( potion effect.The strength( potion effect.The water breathing( potion effect. -
Method Summary
Modifier and TypeMethodDescriptionstatic Beacon.BuffgetBuffAtPosition(int position) Returns the buff occupying the given GUI slot position, ornullif no buff is assigned to that position.static Beacon.BuffLooks up a buff by its canonical name (case-sensitive).getName()The buff's name as skilltree JSON refers to it.intSlot this buff occupies in the selection menu.The vanilla effect this buff applies.static Beacon.BuffReturns the enum constant of this class with the specified name.static Beacon.Buff[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Speed
The speed( potion effect. -
Haste
The haste( potion effect. -
Strength
The strength( potion effect. -
JumpBoost
The jump boost( potion effect. -
Regeneration
The regeneration( potion effect. -
Resistance
The resistance( potion effect. -
FireResistance
The fire resistance( potion effect. -
WaterBreathing
The water breathing( potion effect. -
Invisibility
The invisibility( potion effect. -
NightVision
The night vision( potion effect. -
Absorption
The absorption( potion effect. -
Luck
The luck( potion effect. -
HealthBoost
The health boost( potion effect.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getBuffAtPosition
Returns the buff occupying the given GUI slot position, ornullif no buff is assigned to that position.- Parameters:
position- the GUI slot index- Returns:
- the matching
Buff, ornull
-
getByName
Looks up a buff by its canonical name (case-sensitive).- Parameters:
name- the buff name (e.g."Speed","Regeneration")- Returns:
- the matching
Buff, ornullif not found
-
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
-1when it is not shown
-
getPotionEffectType
The vanilla effect this buff applies.- Returns:
- the potion effect type
-