Enum Class InGameHud.HeartType

java.lang.Object
java.lang.Enum<InGameHud.HeartType>
net.minecraft.client.gui.hud.InGameHud.HeartType
All Implemented Interfaces:
Serializable, Comparable<InGameHud.HeartType>, Constable
Enclosing class:
InGameHud

@Environment(CLIENT) private static enum InGameHud.HeartType extends Enum<InGameHud.HeartType>
Mappings:
Namespace Name
official ekn$a
intermediary net/minecraft/class_329$class_6411
named net/minecraft/client/gui/hud/InGameHud$HeartType
  • Enum Constant Details

    • CONTAINER

      public static final InGameHud.HeartType CONTAINER
      Mappings:
      Namespace Name Mixin selector
      official a Lekn$a;a:Lekn$a;
      intermediary field_33944 Lnet/minecraft/class_329$class_6411;field_33944:Lnet/minecraft/class_329$class_6411;
      named CONTAINER Lnet/minecraft/client/gui/hud/InGameHud$HeartType;CONTAINER:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
    • NORMAL

      public static final InGameHud.HeartType NORMAL
      Mappings:
      Namespace Name Mixin selector
      official b Lekn$a;b:Lekn$a;
      intermediary field_33945 Lnet/minecraft/class_329$class_6411;field_33945:Lnet/minecraft/class_329$class_6411;
      named NORMAL Lnet/minecraft/client/gui/hud/InGameHud$HeartType;NORMAL:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
    • POISIONED

      public static final InGameHud.HeartType POISIONED
      Mappings:
      Namespace Name Mixin selector
      official c Lekn$a;c:Lekn$a;
      intermediary field_33946 Lnet/minecraft/class_329$class_6411;field_33946:Lnet/minecraft/class_329$class_6411;
      named POISIONED Lnet/minecraft/client/gui/hud/InGameHud$HeartType;POISIONED:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
    • WITHERED

      public static final InGameHud.HeartType WITHERED
      Mappings:
      Namespace Name Mixin selector
      official d Lekn$a;d:Lekn$a;
      intermediary field_33947 Lnet/minecraft/class_329$class_6411;field_33947:Lnet/minecraft/class_329$class_6411;
      named WITHERED Lnet/minecraft/client/gui/hud/InGameHud$HeartType;WITHERED:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
    • ABSORBING

      public static final InGameHud.HeartType ABSORBING
      Mappings:
      Namespace Name Mixin selector
      official e Lekn$a;e:Lekn$a;
      intermediary field_33948 Lnet/minecraft/class_329$class_6411;field_33948:Lnet/minecraft/class_329$class_6411;
      named ABSORBING Lnet/minecraft/client/gui/hud/InGameHud$HeartType;ABSORBING:Lnet/minecraft/client/gui/hud/InGameHud$HeartType;
    • FROZEN

      public static final InGameHud.HeartType FROZEN
      Mappings:
      Namespace Name Mixin selector
      official f Lekn$a;f:Lekn$a;
      intermediary field_33949 Lnet/minecraft/class_329$class_6411;field_33949:Lnet/minecraft/class_329$class_6411;
      named FROZEN Lnet/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 g Lekn$a;g:I
      intermediary field_33950 Lnet/minecraft/class_329$class_6411;field_33950:I
      named textureIndex Lnet/minecraft/client/gui/hud/InGameHud$HeartType;textureIndex:I
    • hasBlinkingTexture

      private final boolean hasBlinkingTexture
      Mappings:
      Namespace Name Mixin selector
      official h Lekn$a;h:Z
      intermediary field_33951 Lnet/minecraft/class_329$class_6411;field_33951:Z
      named hasBlinkingTexture Lnet/minecraft/client/gui/hud/InGameHud$HeartType;hasBlinkingTexture:Z
  • Constructor Details

    • HeartType

      private HeartType(int textureIndex, boolean hasBlinkingTexture)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lekn$a;<init>(Ljava/lang/String;IIZ)V
      intermediary <init> Lnet/minecraft/class_329$class_6411;<init>(Ljava/lang/String;IIZ)V
      named <init> Lnet/minecraft/client/gui/hud/InGameHud$HeartType;<init>(Ljava/lang/String;IIZ)V
  • Method Details

    • values

      public static InGameHud.HeartType[] 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

      public static InGameHud.HeartType valueOf(String name)
      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 name
      NullPointerException - 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 a Lekn$a;a(ZZ)I
      intermediary method_37302 Lnet/minecraft/class_329$class_6411;method_37302(ZZ)I
      named getU Lnet/minecraft/client/gui/hud/InGameHud$HeartType;getU(ZZ)I
    • fromPlayerState

      static InGameHud.HeartType fromPlayerState(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lekn$a;a(Lbwp;)Lekn$a;
      intermediary method_37301 Lnet/minecraft/class_329$class_6411;method_37301(Lnet/minecraft/class_1657;)Lnet/minecraft/class_329$class_6411;
      named fromPlayerState Lnet/minecraft/client/gui/hud/InGameHud$HeartType;fromPlayerState(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/client/gui/hud/InGameHud$HeartType;