Package net.minecraft.client.gui
Enum Class Gui.HeartType
- All Implemented Interfaces:
Serializable
,Comparable<Gui.HeartType>
,Constable
- Enclosing class:
Gui
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
private final ResourceLocation
private final ResourceLocation
private final ResourceLocation
private final ResourceLocation
private final ResourceLocation
private final ResourceLocation
private final ResourceLocation
-
Constructor Summary
ModifierConstructorDescriptionprivate
HeartType
(ResourceLocation p_294435_, ResourceLocation p_294438_, ResourceLocation p_295036_, ResourceLocation p_295439_, ResourceLocation p_296249_, ResourceLocation p_295479_, ResourceLocation p_296219_, ResourceLocation p_296437_) -
Method Summary
Modifier and TypeMethodDescription(package private) static Gui.HeartType
getSprite
(boolean p_295909_, boolean p_295387_, boolean p_294486_) static Gui.HeartType
Returns the enum constant of this class with the specified name.static Gui.HeartType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTAINER
-
NORMAL
-
POISIONED
-
WITHERED
-
ABSORBING
-
FROZEN
-
-
Field Details
-
full
-
fullBlinking
-
half
-
halfBlinking
-
hardcoreFull
-
hardcoreFullBlinking
-
hardcoreHalf
-
hardcoreHalfBlinking
-
-
Constructor Details
-
HeartType
private HeartType(ResourceLocation p_294435_, ResourceLocation p_294438_, ResourceLocation p_295036_, ResourceLocation p_295439_, ResourceLocation p_296249_, ResourceLocation p_295479_, ResourceLocation p_296219_, ResourceLocation p_296437_)
-
-
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
-
getSprite
-
forPlayer
-