Package net.minecraft.entity.mob
Enum SpellcastingIllagerEntity.Spell
java.lang.Object
java.lang.Enum<SpellcastingIllagerEntity.Spell>
net.minecraft.entity.mob.SpellcastingIllagerEntity.Spell
- All Implemented Interfaces:
Serializable
,Comparable<SpellcastingIllagerEntity.Spell>
,java.lang.constant.Constable
- Enclosing class:
- SpellcastingIllagerEntity
public static enum SpellcastingIllagerEntity.Spell extends Enum<SpellcastingIllagerEntity.Spell>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private int
id
private double[]
particleVelocity
-
Constructor Summary
Constructors Modifier Constructor Description private
Spell(int id, double particleVelocityX, double particleVelocityY, double particleVelocityZ)
-
Method Summary
Modifier and Type Method Description static SpellcastingIllagerEntity.Spell
byId(int id)
static SpellcastingIllagerEntity.Spell
valueOf(String name)
Returns the enum constant of this type with the specified name.static SpellcastingIllagerEntity.Spell[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
-
SUMMON_VEX
-
FANGS
-
WOLOLO
-
DISAPPEAR
-
BLINDNESS
-
-
Field Details
-
id
private final int id -
particleVelocity
private final double[] particleVelocity
-
-
Constructor Details
-
Spell
private Spell(int id, double particleVelocityX, double particleVelocityY, double particleVelocityZ)
-
-
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
byId
-