Enum Class 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal net.minecraft.stat.StatType
<?> final int
getStatValue
(SUMobStat stat) final net.minecraft.text.Text
getText()
static final boolean
isMobStat
(net.minecraft.stat.Stat<?> stat) static MobStatType
Returns the enum constant of this class with the specified name.static MobStatType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
KILLED
-
KILLED_BY
-
-
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
-
getStatType
public final net.minecraft.stat.StatType<?> getStatType() -
getText
public final net.minecraft.text.Text getText()- Specified by:
getText
in interfaceio.github.thecsdev.tcdcommons.api.util.interfaces.ITextProvider
-
getStatValue
- Throws:
NullPointerException
-
isMobStat
public static final boolean isMobStat(net.minecraft.stat.Stat<?> stat)
-