Package net.minecraft.client.gui.hud
Enum Class InGameHud.HeartType
- All Implemented Interfaces:
Serializable,Comparable<InGameHud.HeartType>,Constable
- Enclosing class:
InGameHud
- Mappings:
Namespace Name official ecl$aintermediary net/minecraft/class_329$class_6411named net/minecraft/client/gui/hud/InGameHud$HeartType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static InGameHud.HeartTypefromPlayerState(PlayerEntity player) intgetU(boolean halfHeart, boolean blinking) Returns the left-most coordinate of the heart texture.static InGameHud.HeartTypeReturns the enum constant of this class with the specified name.static InGameHud.HeartType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTAINER
- Mappings:
Namespace Name Mixin selector official aLecl$a;a:Lecl$a;intermediary field_33944Lnet/minecraft/class_329$class_6411;field_33944:Lnet/minecraft/class_329$class_6411;named CONTAINERLnet/minecraft/client/gui/hud/InGameHud$HeartType;CONTAINER:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
-
NORMAL
- Mappings:
Namespace Name Mixin selector official bLecl$a;b:Lecl$a;intermediary field_33945Lnet/minecraft/class_329$class_6411;field_33945:Lnet/minecraft/class_329$class_6411;named NORMALLnet/minecraft/client/gui/hud/InGameHud$HeartType;NORMAL:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
-
POISIONED
- Mappings:
Namespace Name Mixin selector official cLecl$a;c:Lecl$a;intermediary field_33946Lnet/minecraft/class_329$class_6411;field_33946:Lnet/minecraft/class_329$class_6411;named POISIONEDLnet/minecraft/client/gui/hud/InGameHud$HeartType;POISIONED:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
-
WITHERED
- Mappings:
Namespace Name Mixin selector official dLecl$a;d:Lecl$a;intermediary field_33947Lnet/minecraft/class_329$class_6411;field_33947:Lnet/minecraft/class_329$class_6411;named WITHEREDLnet/minecraft/client/gui/hud/InGameHud$HeartType;WITHERED:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
-
ABSORBING
- Mappings:
Namespace Name Mixin selector official eLecl$a;e:Lecl$a;intermediary field_33948Lnet/minecraft/class_329$class_6411;field_33948:Lnet/minecraft/class_329$class_6411;named ABSORBINGLnet/minecraft/client/gui/hud/InGameHud$HeartType;ABSORBING:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
-
FROZEN
- Mappings:
Namespace Name Mixin selector official fLecl$a;f:Lecl$a;intermediary field_33949Lnet/minecraft/class_329$class_6411;field_33949:Lnet/minecraft/class_329$class_6411;named FROZENLnet/minecraft/client/gui/hud/InGameHud$HeartType;FROZEN:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
-
-
Field Details
-
textureIndex
private final int textureIndex- Mappings:
Namespace Name Mixin selector official gLecl$a;g:Iintermediary field_33950Lnet/minecraft/class_329$class_6411;field_33950:Inamed textureIndexLnet/minecraft/client/gui/hud/InGameHud$HeartType;textureIndex:I
-
hasBlinkingTexture
private final boolean hasBlinkingTexture- Mappings:
Namespace Name Mixin selector official hLecl$a;h:Zintermediary field_33951Lnet/minecraft/class_329$class_6411;field_33951:Znamed hasBlinkingTextureLnet/minecraft/client/gui/hud/InGameHud$HeartType;hasBlinkingTexture:Z
-
-
Constructor Details
-
HeartType
private HeartType(int textureIndex, boolean hasBlinkingTexture) - Mappings:
Namespace Name Mixin selector official <init>Lecl$a;<init>(Ljava/lang/String;IIZ)Vintermediary <init>Lnet/minecraft/class_329$class_6411;<init>(Ljava/lang/String;IIZ)Vnamed <init>Lnet/minecraft/client/gui/hud/InGameHud$HeartType;<init>(Ljava/lang/String;IIZ)V
-
-
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
-
getU
public int getU(boolean halfHeart, boolean blinking) Returns the left-most coordinate of the heart texture.- Returns:
- the left-most coordinate of the heart texture
- Mappings:
Namespace Name Mixin selector official aLecl$a;a(ZZ)Iintermediary method_37302Lnet/minecraft/class_329$class_6411;method_37302(ZZ)Inamed getULnet/minecraft/client/gui/hud/InGameHud$HeartType;getU(ZZ)I
-
fromPlayerState
- Mappings:
Namespace Name Mixin selector official aLecl$a;a(Lbqi;)Lecl$a;intermediary method_37301Lnet/minecraft/class_329$class_6411;method_37301(Lnet/minecraft/class_1657;)Lnet/minecraft/class_329$class_6411;named fromPlayerStateLnet/minecraft/client/gui/hud/InGameHud$HeartType;fromPlayerState(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
-