Class DisplayEntity.TextDisplayEntity

java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.decoration.DisplayEntity
net.minecraft.entity.decoration.DisplayEntity.TextDisplayEntity
All Implemented Interfaces:
DataTracked, ScoreHolder, Nameable, EntityLike
Enclosing class:
DisplayEntity

public static class DisplayEntity.TextDisplayEntity extends DisplayEntity
Mappings:
Namespace Name
named net/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity
intermediary net/minecraft/class_8113$class_8123
official bvh$l
  • Field Details

    • TEXT_NBT_KEY

      public static final String TEXT_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TEXT_NBT_KEY Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;TEXT_NBT_KEY:Ljava/lang/String;
      intermediary field_42443 Lnet/minecraft/class_8113$class_8123;field_42443:Ljava/lang/String;
      official o Lbvh$l;o:Ljava/lang/String;
    • LINE_WIDTH_NBT_KEY

      private static final String LINE_WIDTH_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LINE_WIDTH_NBT_KEY Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;LINE_WIDTH_NBT_KEY:Ljava/lang/String;
      intermediary field_42427 Lnet/minecraft/class_8113$class_8123;field_42427:Ljava/lang/String;
      official ay Lbvh$l;ay:Ljava/lang/String;
    • TEXT_OPACITY_NBT_KEY

      private static final String TEXT_OPACITY_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TEXT_OPACITY_NBT_KEY Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;TEXT_OPACITY_NBT_KEY:Ljava/lang/String;
      intermediary field_42428 Lnet/minecraft/class_8113$class_8123;field_42428:Ljava/lang/String;
      official az Lbvh$l;az:Ljava/lang/String;
    • BACKGROUND_NBT_KEY

      private static final String BACKGROUND_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BACKGROUND_NBT_KEY Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;BACKGROUND_NBT_KEY:Ljava/lang/String;
      intermediary field_42429 Lnet/minecraft/class_8113$class_8123;field_42429:Ljava/lang/String;
      official aA Lbvh$l;aA:Ljava/lang/String;
    • SHADOW_NBT_KEY

      private static final String SHADOW_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SHADOW_NBT_KEY Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;SHADOW_NBT_KEY:Ljava/lang/String;
      intermediary field_42430 Lnet/minecraft/class_8113$class_8123;field_42430:Ljava/lang/String;
      official aB Lbvh$l;aB:Ljava/lang/String;
    • SEE_THROUGH_NBT_KEY

      private static final String SEE_THROUGH_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SEE_THROUGH_NBT_KEY Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;SEE_THROUGH_NBT_KEY:Ljava/lang/String;
      intermediary field_42431 Lnet/minecraft/class_8113$class_8123;field_42431:Ljava/lang/String;
      official aC Lbvh$l;aC:Ljava/lang/String;
    • DEFAULT_BACKGROUND_NBT_KEY

      private static final String DEFAULT_BACKGROUND_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_BACKGROUND_NBT_KEY Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;DEFAULT_BACKGROUND_NBT_KEY:Ljava/lang/String;
      intermediary field_42432 Lnet/minecraft/class_8113$class_8123;field_42432:Ljava/lang/String;
      official aD Lbvh$l;aD:Ljava/lang/String;
    • ALIGNMENT_NBT_KEY

      private static final String ALIGNMENT_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ALIGNMENT_NBT_KEY Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;ALIGNMENT_NBT_KEY:Ljava/lang/String;
      intermediary field_42433 Lnet/minecraft/class_8113$class_8123;field_42433:Ljava/lang/String;
      official aE Lbvh$l;aE:Ljava/lang/String;
    • SHADOW_FLAG

      public static final byte SHADOW_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SHADOW_FLAG Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;SHADOW_FLAG:B
      intermediary field_42444 Lnet/minecraft/class_8113$class_8123;field_42444:B
      official p Lbvh$l;p:B
    • SEE_THROUGH_FLAG

      public static final byte SEE_THROUGH_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SEE_THROUGH_FLAG Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;SEE_THROUGH_FLAG:B
      intermediary field_42445 Lnet/minecraft/class_8113$class_8123;field_42445:B
      official q Lbvh$l;q:B
    • DEFAULT_BACKGROUND_FLAG

      public static final byte DEFAULT_BACKGROUND_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_BACKGROUND_FLAG Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;DEFAULT_BACKGROUND_FLAG:B
      intermediary field_42446 Lnet/minecraft/class_8113$class_8123;field_42446:B
      official r Lbvh$l;r:B
    • LEFT_ALIGNMENT_FLAG

      public static final byte LEFT_ALIGNMENT_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LEFT_ALIGNMENT_FLAG Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;LEFT_ALIGNMENT_FLAG:B
      intermediary field_42447 Lnet/minecraft/class_8113$class_8123;field_42447:B
      official s Lbvh$l;s:B
    • RIGHT_ALIGNMENT_FLAG

      public static final byte RIGHT_ALIGNMENT_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named RIGHT_ALIGNMENT_FLAG Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;RIGHT_ALIGNMENT_FLAG:B
      intermediary field_42448 Lnet/minecraft/class_8113$class_8123;field_42448:B
      official t Lbvh$l;t:B
    • INITIAL_TEXT_OPACITY

      private static final byte INITIAL_TEXT_OPACITY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named INITIAL_TEXT_OPACITY Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;INITIAL_TEXT_OPACITY:B
      intermediary field_42434 Lnet/minecraft/class_8113$class_8123;field_42434:B
      official aF Lbvh$l;aF:B
    • INITIAL_BACKGROUND

      public static final int INITIAL_BACKGROUND
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named INITIAL_BACKGROUND Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;INITIAL_BACKGROUND:I
      intermediary field_42449 Lnet/minecraft/class_8113$class_8123;field_42449:I
      official u Lbvh$l;u:I
    • TEXT

      private static final TrackedData<Text> TEXT
      Mappings:
      Namespace Name Mixin selector
      named TEXT Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;TEXT:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_42435 Lnet/minecraft/class_8113$class_8123;field_42435:Lnet/minecraft/class_2940;
      official aG Lbvh$l;aG:Lalc;
    • LINE_WIDTH

      private static final TrackedData<Integer> LINE_WIDTH
      Mappings:
      Namespace Name Mixin selector
      named LINE_WIDTH Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;LINE_WIDTH:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_42436 Lnet/minecraft/class_8113$class_8123;field_42436:Lnet/minecraft/class_2940;
      official aH Lbvh$l;aH:Lalc;
    • BACKGROUND

      private static final TrackedData<Integer> BACKGROUND
      Mappings:
      Namespace Name Mixin selector
      named BACKGROUND Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;BACKGROUND:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_42437 Lnet/minecraft/class_8113$class_8123;field_42437:Lnet/minecraft/class_2940;
      official aI Lbvh$l;aI:Lalc;
    • TEXT_OPACITY

      private static final TrackedData<Byte> TEXT_OPACITY
      Mappings:
      Namespace Name Mixin selector
      named TEXT_OPACITY Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;TEXT_OPACITY:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_42438 Lnet/minecraft/class_8113$class_8123;field_42438:Lnet/minecraft/class_2940;
      official aJ Lbvh$l;aJ:Lalc;
    • TEXT_DISPLAY_FLAGS

      private static final TrackedData<Byte> TEXT_DISPLAY_FLAGS
      Mappings:
      Namespace Name Mixin selector
      named TEXT_DISPLAY_FLAGS Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;TEXT_DISPLAY_FLAGS:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_42439 Lnet/minecraft/class_8113$class_8123;field_42439:Lnet/minecraft/class_2940;
      official aK Lbvh$l;aK:Lalc;
    • TEXT_RENDERING_DATA_IDS

      private static final IntSet TEXT_RENDERING_DATA_IDS
      Mappings:
      Namespace Name Mixin selector
      named TEXT_RENDERING_DATA_IDS Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;TEXT_RENDERING_DATA_IDS:Lit/unimi/dsi/fastutil/ints/IntSet;
      intermediary field_43188 Lnet/minecraft/class_8113$class_8123;field_43188:Lit/unimi/dsi/fastutil/ints/IntSet;
      official aL Lbvh$l;aL:Lit/unimi/dsi/fastutil/ints/IntSet;
    • textLines

      Mappings:
      Namespace Name Mixin selector
      named textLines Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;textLines:Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$TextLines;
      intermediary field_42442 Lnet/minecraft/class_8113$class_8123;field_42442:Lnet/minecraft/class_8113$class_8123$class_8125;
      official aM Lbvh$l;aM:Lbvh$l$b;
    • data

      Mappings:
      Namespace Name Mixin selector
      named data Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;data:Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$Data;
      intermediary field_43189 Lnet/minecraft/class_8113$class_8123;field_43189:Lnet/minecraft/class_8113$class_8123$class_8230;
      official aN Lbvh$l;aN:Lbvh$l$e;
  • Constructor Details

    • TextDisplayEntity

      public TextDisplayEntity(EntityType<?> type, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lbvj;<init>(Lbvq;Ldhh;)V
  • Method Details

    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class DisplayEntity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lbvj;a(Lalg$a;)V
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Called on the client when the tracked data is set.

      This can be overridden to refresh other fields when the tracked data is set or changed.

      Specified by:
      onTrackedDataSet in interface DataTracked
      Overrides:
      onTrackedDataSet in class DisplayEntity
      Mappings:
      Namespace Name Mixin selector
      named onTrackedDataSet Lnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
      intermediary method_5674 Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)V
      official a Lalf;a(Lalc;)V
    • getText

      private Text getText()
      Mappings:
      Namespace Name Mixin selector
      named getText Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;getText()Lnet/minecraft/text/Text;
      intermediary method_48915 Lnet/minecraft/class_8113$class_8123;method_48915()Lnet/minecraft/class_2561;
      official t Lbvh$l;t()Lxv;
    • setText

      private void setText(Text text)
      Mappings:
      Namespace Name Mixin selector
      named setText Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;setText(Lnet/minecraft/text/Text;)V
      intermediary method_48911 Lnet/minecraft/class_8113$class_8123;method_48911(Lnet/minecraft/class_2561;)V
      official a Lbvh$l;a(Lxv;)V
    • getLineWidth

      private int getLineWidth()
      Mappings:
      Namespace Name Mixin selector
      named getLineWidth Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;getLineWidth()I
      intermediary method_48916 Lnet/minecraft/class_8113$class_8123;method_48916()I
      official u Lbvh$l;u()I
    • setLineWidth

      private void setLineWidth(int lineWidth)
      Mappings:
      Namespace Name Mixin selector
      named setLineWidth Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;setLineWidth(I)V
      intermediary method_48908 Lnet/minecraft/class_8113$class_8123;method_48908(I)V
      official b Lbvh$l;b(I)V
    • getTextOpacity

      private byte getTextOpacity()
      Mappings:
      Namespace Name Mixin selector
      named getTextOpacity Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;getTextOpacity()B
      intermediary method_48918 Lnet/minecraft/class_8113$class_8123;method_48918()B
      official v Lbvh$l;v()B
    • setTextOpacity

      private void setTextOpacity(byte textOpacity)
      Mappings:
      Namespace Name Mixin selector
      named setTextOpacity Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;setTextOpacity(B)V
      intermediary method_48909 Lnet/minecraft/class_8113$class_8123;method_48909(B)V
      official c Lbvh$l;c(B)V
    • getBackground

      private int getBackground()
      Mappings:
      Namespace Name Mixin selector
      named getBackground Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;getBackground()I
      intermediary method_48919 Lnet/minecraft/class_8113$class_8123;method_48919()I
      official w Lbvh$l;w()I
    • setBackground

      private void setBackground(int background)
      Mappings:
      Namespace Name Mixin selector
      named setBackground Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;setBackground(I)V
      intermediary method_48910 Lnet/minecraft/class_8113$class_8123;method_48910(I)V
      official c Lbvh$l;c(I)V
    • getDisplayFlags

      private byte getDisplayFlags()
      Mappings:
      Namespace Name Mixin selector
      named getDisplayFlags Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;getDisplayFlags()B
      intermediary method_48917 Lnet/minecraft/class_8113$class_8123;method_48917()B
      official x Lbvh$l;x()B
    • setDisplayFlags

      private void setDisplayFlags(byte flags)
      Mappings:
      Namespace Name Mixin selector
      named setDisplayFlags Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;setDisplayFlags(B)V
      intermediary method_48912 Lnet/minecraft/class_8113$class_8123;method_48912(B)V
      official d Lbvh$l;d(B)V
    • readFlag

      private static byte readFlag(byte flags, NbtCompound nbt, String nbtKey, byte flag)
      Mappings:
      Namespace Name Mixin selector
      named readFlag Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;readFlag(BLnet/minecraft/nbt/NbtCompound;Ljava/lang/String;B)B
      intermediary method_48903 Lnet/minecraft/class_8113$class_8123;method_48903(BLnet/minecraft/class_2487;Ljava/lang/String;B)B
      official a Lbvh$l;a(BLux;Ljava/lang/String;B)B
    • readCustomDataFromNbt

      protected void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readCustomDataFromNbt in class DisplayEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      official a Lbvj;a(Lux;)V
    • writeFlag

      private static void writeFlag(byte flags, NbtCompound nbt, String nbtKey, byte flag)
      Mappings:
      Namespace Name Mixin selector
      named writeFlag Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;writeFlag(BLnet/minecraft/nbt/NbtCompound;Ljava/lang/String;B)V
      intermediary method_48907 Lnet/minecraft/class_8113$class_8123;method_48907(BLnet/minecraft/class_2487;Ljava/lang/String;B)V
      official b Lbvh$l;b(BLux;Ljava/lang/String;B)V
    • writeCustomDataToNbt

      protected void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      Overrides:
      writeCustomDataToNbt in class DisplayEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      official b Lbvj;b(Lux;)V
    • refreshData

      protected void refreshData(boolean shouldLerp, float lerpProgress)
      Specified by:
      refreshData in class DisplayEntity
      Mappings:
      Namespace Name Mixin selector
      named refreshData Lnet/minecraft/entity/decoration/DisplayEntity;refreshData(ZF)V
      intermediary method_49776 Lnet/minecraft/class_8113;method_49776(ZF)V
      official a Lbvh;a(ZF)V
    • getData

      Mappings:
      Namespace Name Mixin selector
      named getData Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;getData()Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$Data;
      intermediary method_49784 Lnet/minecraft/class_8113$class_8123;method_49784()Lnet/minecraft/class_8113$class_8123$class_8230;
      official s Lbvh$l;s()Lbvh$l$e;
    • copyData

      Mappings:
      Namespace Name Mixin selector
      named copyData Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;copyData()Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$Data;
      intermediary method_49785 Lnet/minecraft/class_8113$class_8123;method_49785()Lnet/minecraft/class_8113$class_8123$class_8230;
      official y Lbvh$l;y()Lbvh$l$e;
    • getLerpedRenderState

      private DisplayEntity.TextDisplayEntity.Data getLerpedRenderState(DisplayEntity.TextDisplayEntity.Data data, float lerpProgress)
      Mappings:
      Namespace Name Mixin selector
      named getLerpedRenderState Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;getLerpedRenderState(Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$Data;F)Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$Data;
      intermediary method_49783 Lnet/minecraft/class_8113$class_8123;method_49783(Lnet/minecraft/class_8113$class_8123$class_8230;F)Lnet/minecraft/class_8113$class_8123$class_8230;
      official a Lbvh$l;a(Lbvh$l$e;F)Lbvh$l$e;
    • splitLines

      Mappings:
      Namespace Name Mixin selector
      named splitLines Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;splitLines(Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$LineSplitter;)Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$TextLines;
      intermediary method_48905 Lnet/minecraft/class_8113$class_8123;method_48905(Lnet/minecraft/class_8113$class_8123$class_8127;)Lnet/minecraft/class_8113$class_8123$class_8125;
      official a Lbvh$l;a(Lbvh$l$d;)Lbvh$l$b;
    • getAlignment

      public static DisplayEntity.TextDisplayEntity.TextAlignment getAlignment(byte flags)
      Mappings:
      Namespace Name Mixin selector
      named getAlignment Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity;getAlignment(B)Lnet/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$TextAlignment;
      intermediary method_48902 Lnet/minecraft/class_8113$class_8123;method_48902(B)Lnet/minecraft/class_8113$class_8123$class_8124;
      official a Lbvh$l;a(B)Lbvh$l$a;