Enum Class Element

java.lang.Object
java.lang.Enum<Element>
io.github.xrickastley.sevenelements.element.Element
All Implemented Interfaces:
Serializable, Comparable<Element>, Constable

public enum Element extends Enum<Element>
  • Enum Constant Details

    • PHYSICAL

      public static final Element PHYSICAL
    • PYRO

      public static final Element PYRO
    • HYDRO

      public static final Element HYDRO
    • ANEMO

      public static final Element ANEMO
    • ELECTRO

      public static final Element ELECTRO
    • DENDRO

      public static final Element DENDRO
    • CRYO

      public static final Element CRYO
    • GEO

      public static final Element GEO
    • FREEZE

      public static final Element FREEZE
    • BURNING

      public static final Element BURNING
    • QUICKEN

      public static final Element QUICKEN
  • Field Details

  • Constructor Details

  • Method Details

    • values

      public static Element[] 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 Element 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
    • hasDecayInheritance

      public boolean hasDecayInheritance()
    • hasTexture

      public boolean hasTexture()
    • getTexture

      public Identifier getTexture()
    • hasDamageColor

      public boolean hasDamageColor()
    • getDamageColor

      public Color getDamageColor()
    • getId

      public Identifier getId()
    • canBeAura

      public boolean canBeAura()
    • getPriority

      public int getPriority()
    • getCustomDecayRate

      @Nullable public @Nullable Function<ElementalApplication,Number> getCustomDecayRate()
    • bypassesInternalCooldown

      public boolean bypassesInternalCooldown()
    • hasAuraTax

      public boolean hasAuraTax()
    • getText

      public Text getText()
    • getString

      public String getString()
    • renderEffects

      public void renderEffects(LivingEntity entity)
    • reduceLinkedElements

      void reduceLinkedElements(double reduction, ElementalApplication application, boolean isGaugeDecay)