Package net.minecraft.client.gui.hud
Enum Class InGameHud.HeartType
- All Implemented Interfaces:
Serializable,Comparable<InGameHud.HeartType>,Constable
- Enclosing class:
InGameHud
- Mappings:
Namespace Name intermediary net/minecraft/class_329$class_6411official eoo$anamed 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 intermediary field_33944Lnet/minecraft/class_329$class_6411;field_33944:Lnet/minecraft/class_329$class_6411;official aLeoo$a;a:Leoo$a;named CONTAINERLnet/minecraft/client/gui/hud/InGameHud$HeartType;CONTAINER:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
-
NORMAL
- Mappings:
Namespace Name Mixin selector intermediary field_33945Lnet/minecraft/class_329$class_6411;field_33945:Lnet/minecraft/class_329$class_6411;official bLeoo$a;b:Leoo$a;named NORMALLnet/minecraft/client/gui/hud/InGameHud$HeartType;NORMAL:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
-
POISONED
- Mappings:
Namespace Name Mixin selector intermediary field_33946Lnet/minecraft/class_329$class_6411;field_33946:Lnet/minecraft/class_329$class_6411;official cLeoo$a;c:Leoo$a;named POISONEDLnet/minecraft/client/gui/hud/InGameHud$HeartType;POISONED:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
-
WITHERED
- Mappings:
Namespace Name Mixin selector intermediary field_33947Lnet/minecraft/class_329$class_6411;field_33947:Lnet/minecraft/class_329$class_6411;official dLeoo$a;d:Leoo$a;named WITHEREDLnet/minecraft/client/gui/hud/InGameHud$HeartType;WITHERED:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
-
ABSORBING
- Mappings:
Namespace Name Mixin selector intermediary field_33948Lnet/minecraft/class_329$class_6411;field_33948:Lnet/minecraft/class_329$class_6411;official eLeoo$a;e:Leoo$a;named ABSORBINGLnet/minecraft/client/gui/hud/InGameHud$HeartType;ABSORBING:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
-
FROZEN
- Mappings:
Namespace Name Mixin selector intermediary field_33949Lnet/minecraft/class_329$class_6411;field_33949:Lnet/minecraft/class_329$class_6411;official fLeoo$a;f:Leoo$a;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 intermediary field_33950Lnet/minecraft/class_329$class_6411;field_33950:Iofficial gLeoo$a;g:Inamed textureIndexLnet/minecraft/client/gui/hud/InGameHud$HeartType;textureIndex:I
-
hasBlinkingTexture
private final boolean hasBlinkingTexture- Mappings:
Namespace Name Mixin selector intermediary field_33951Lnet/minecraft/class_329$class_6411;field_33951:Zofficial hLeoo$a;h:Znamed hasBlinkingTextureLnet/minecraft/client/gui/hud/InGameHud$HeartType;hasBlinkingTexture:Z
-
-
Constructor Details
-
HeartType
private HeartType(int textureIndex, boolean hasBlinkingTexture) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_329$class_6411;<init>(Ljava/lang/String;IIZ)Vofficial <init>Leoo$a;<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 intermediary method_37302Lnet/minecraft/class_329$class_6411;method_37302(ZZ)Iofficial aLeoo$a;a(ZZ)Inamed getULnet/minecraft/client/gui/hud/InGameHud$HeartType;getU(ZZ)I
-
fromPlayerState
- Mappings:
Namespace Name Mixin selector intermediary method_37301Lnet/minecraft/class_329$class_6411;method_37301(Lnet/minecraft/class_1657;)Lnet/minecraft/class_329$class_6411;official aLeoo$a;a(Lbym;)Leoo$a;named fromPlayerStateLnet/minecraft/client/gui/hud/InGameHud$HeartType;fromPlayerState(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
-