Enum Class Element
- All Implemented Interfaces:
Serializable,Comparable<Element>,Constable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classA class used in creating data for Elements, instead of multiple overloaded constructors.private static final recordNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Element>private final Identifierprivate final List<Pair<Element,Predicate<ElementalApplication>>> private final Element.ElementSettings -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanboolean@Nullable Function<ElementalApplication,Number> getId()intgetText()booleanbooleanbooleanboolean(package private) voidreduceLinkedElements(double reduction, ElementalApplication application, boolean isGaugeDecay) voidrenderEffects(LivingEntity entity) static ElementReturns the enum constant of this class with the specified name.static Element[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PHYSICAL
-
PYRO
-
HYDRO
-
ANEMO
-
ELECTRO
-
DENDRO
-
CRYO
-
GEO
-
FREEZE
-
BURNING
-
QUICKEN
-
-
Field Details
-
CODEC
-
id
-
settings
-
linkedElements
-
-
Constructor Details
-
Element
-
-
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
-
hasDecayInheritance
public boolean hasDecayInheritance() -
hasTexture
public boolean hasTexture() -
getTexture
-
hasDamageColor
public boolean hasDamageColor() -
getDamageColor
-
getId
-
canBeAura
public boolean canBeAura() -
getPriority
public int getPriority() -
getCustomDecayRate
-
bypassesInternalCooldown
public boolean bypassesInternalCooldown() -
hasAuraTax
public boolean hasAuraTax() -
getText
-
getString
-
renderEffects
-
reduceLinkedElements
-