java.lang.Object
java.lang.Enum<MobStatType>
io.github.thecsdev.betterstats.api.util.enumerations.MobStatType
All Implemented Interfaces:
io.github.thecsdev.tcdcommons.api.util.interfaces.ITextProvider, Serializable, Comparable<MobStatType>, Constable

public enum MobStatType extends Enum<MobStatType> implements io.github.thecsdev.tcdcommons.api.util.interfaces.ITextProvider
  • Enum Constant Details

  • Method Details

    • values

      public static MobStatType[] 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 MobStatType 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
    • getStatType

      public final net.minecraft.stat.StatType<?> getStatType()
    • getText

      public final net.minecraft.text.Text getText()
      Specified by:
      getText in interface io.github.thecsdev.tcdcommons.api.util.interfaces.ITextProvider
    • getStatValue

      public final int getStatValue(SUMobStat stat) throws NullPointerException
      Throws:
      NullPointerException
    • isMobStat

      public static final boolean isMobStat(net.minecraft.stat.Stat<?> stat)