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 eow$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 Leow$a;a:Leow$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 Leow$a;b:Leow$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;
    • POISONED

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

      public static final InGameHud.HeartType WITHERED
      Mappings:
      Namespace Name Mixin selector
      official d Leow$a;d:Leow$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 Leow$a;e:Leow$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 Leow$a;f:Leow$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 Leow$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 Leow$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> Leow$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 Leow$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 Leow$a;a(Lbyo;)Leow$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;