Package net.minestom.server.potion
Enum PotionEffect
java.lang.Object
java.lang.Enum<PotionEffect>
net.minestom.server.potion.PotionEffect
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PotionEffect>
,java.lang.constant.Constable
public enum PotionEffect extends java.lang.Enum<PotionEffect>
//==============================
// AUTOGENERATED BY EnumGenerator
//==============================
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static PotionEffect
fromId(int id)
int
getId()
java.lang.String
getNamespaceID()
static PotionEffect
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PotionEffect[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SPEED
-
SLOWNESS
-
HASTE
-
MINING_FATIGUE
-
STRENGTH
-
INSTANT_HEALTH
-
INSTANT_DAMAGE
-
JUMP_BOOST
-
NAUSEA
-
REGENERATION
-
RESISTANCE
-
FIRE_RESISTANCE
-
WATER_BREATHING
-
INVISIBILITY
-
BLINDNESS
-
NIGHT_VISION
-
HUNGER
-
WEAKNESS
-
POISON
-
WITHER
-
HEALTH_BOOST
-
ABSORPTION
-
SATURATION
-
GLOWING
-
LEVITATION
-
LUCK
-
UNLUCK
-
SLOW_FALLING
-
CONDUIT_POWER
-
DOLPHINS_GRACE
-
BAD_OMEN
-
HERO_OF_THE_VILLAGE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getId
public int getId() -
getNamespaceID
public java.lang.String getNamespaceID() -
fromId
-