Enum Class DisplayEntity.TextDisplayEntity.TextAlignment

java.lang.Object
java.lang.Enum<DisplayEntity.TextDisplayEntity.TextAlignment>
net.minecraft.entity.decoration.DisplayEntity.TextDisplayEntity.TextAlignment
All Implemented Interfaces:
Serializable, Comparable<DisplayEntity.TextDisplayEntity.TextAlignment>, Constable, StringIdentifiable
Enclosing class:
DisplayEntity.TextDisplayEntity

public static enum DisplayEntity.TextDisplayEntity.TextAlignment extends Enum<DisplayEntity.TextDisplayEntity.TextAlignment> implements StringIdentifiable
Mappings:
Namespace Name
official blu$l$a
intermediary net/minecraft/class_8113$class_8123$class_8124
named net/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$TextAlignment
  • Enum Constant Details

    • CENTER

      Mappings:
      Namespace Name Mixin selector
      official a Lblu$l$a;a:Lblu$l$a;
      intermediary field_42450 Lnet/minecraft/class_8113$class_8123$class_8124;field_42450:Lnet/minecraft/class_8113$class_8123$class_8124;
      named CENTER Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$TextAlignment;CENTER:Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$TextAlignment;
    • LEFT

      Mappings:
      Namespace Name Mixin selector
      official b Lblu$l$a;b:Lblu$l$a;
      intermediary field_42451 Lnet/minecraft/class_8113$class_8123$class_8124;field_42451:Lnet/minecraft/class_8113$class_8123$class_8124;
      named LEFT Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$TextAlignment;LEFT:Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$TextAlignment;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<DisplayEntity.TextDisplayEntity.TextAlignment> CODEC
      Mappings:
      Namespace Name Mixin selector
      official d Lblu$l$a;d:Lcom/mojang/serialization/Codec;
      intermediary field_42453 Lnet/minecraft/class_8113$class_8123$class_8124;field_42453:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$TextAlignment;CODEC:Lcom/mojang/serialization/Codec;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official e Lblu$l$a;e:Ljava/lang/String;
      intermediary field_42454 Lnet/minecraft/class_8113$class_8123$class_8124;field_42454:Ljava/lang/String;
      named name Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$TextAlignment;name:Ljava/lang/String;
  • Constructor Details

    • TextAlignment

      private TextAlignment(String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lblu$l$a;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_8113$class_8123$class_8124;<init>(Ljava/lang/String;ILjava/lang/String;)V
      named <init> Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$TextAlignment;<init>(Ljava/lang/String;ILjava/lang/String;)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 name
      NullPointerException - if the argument is null
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      official c Lavk;c()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;