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_300867_, ResourceLocation p_300697_, ResourceLocation p_297618_, ResourceLocation p_298356_, ResourceLocation p_300264_, ResourceLocation p_299924_, ResourceLocation p_297755_, ResourceLocation p_298658_) -
Method Summary
Modifier and TypeMethodDescription(package private) static Gui.HeartType
getSprite
(boolean p_297692_, boolean p_299675_, boolean p_299889_) 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_300867_, ResourceLocation p_300697_, ResourceLocation p_297618_, ResourceLocation p_298356_, ResourceLocation p_300264_, ResourceLocation p_299924_, ResourceLocation p_297755_, ResourceLocation p_298658_)
-
-
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
-