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
named net/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$TextAlignment
intermediary net/minecraft/class_8113$class_8123$class_8124
official bsv$l$a
  • Enum Constant Details

    • CENTER

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

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

    • CODEC

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

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

    • TextAlignment

      private TextAlignment(String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$TextAlignment;<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
      official <init> Lbsv$l$a;<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
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lazu;c()Ljava/lang/String;