Class DisplayEntity.BlockDisplayEntity

java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.decoration.DisplayEntity
net.minecraft.entity.decoration.DisplayEntity.BlockDisplayEntity
All Implemented Interfaces:
CommandOutput, Nameable, EntityLike
Enclosing class:
DisplayEntity

public static class DisplayEntity.BlockDisplayEntity extends DisplayEntity
Mappings:
Namespace Name
official bfg$b
intermediary net/minecraft/class_8113$class_8115
named net/minecraft/entity/decoration/DisplayEntity$BlockDisplayEntity
  • Field Details

    • BLOCK_STATE_NBT_KEY

      public static final String BLOCK_STATE_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official o Lbfg$b;o:Ljava/lang/String;
      intermediary field_42415 Lnet/minecraft/class_8113$class_8115;field_42415:Ljava/lang/String;
      named BLOCK_STATE_NBT_KEY Lnet/minecraft/entity/decoration/DisplayEntity$BlockDisplayEntity;BLOCK_STATE_NBT_KEY:Ljava/lang/String;
    • BLOCK_STATE

      private static final TrackedData<BlockState> BLOCK_STATE
      Mappings:
      Namespace Name Mixin selector
      official p Lbfg$b;p:Laby;
      intermediary field_42416 Lnet/minecraft/class_8113$class_8115;field_42416:Lnet/minecraft/class_2940;
      named BLOCK_STATE Lnet/minecraft/entity/decoration/DisplayEntity$BlockDisplayEntity;BLOCK_STATE:Lnet/minecraft/entity/data/TrackedData;
    • data

      Mappings:
      Namespace Name Mixin selector
      official q Lbfg$b;q:Lbfg$b$a;
      intermediary field_43186 Lnet/minecraft/class_8113$class_8115;field_43186:Lnet/minecraft/class_8113$class_8115$class_8225;
      named data Lnet/minecraft/entity/decoration/DisplayEntity$BlockDisplayEntity;data:Lnet/minecraft/entity/decoration/DisplayEntity$BlockDisplayEntity$Data;
  • Constructor Details

    • BlockDisplayEntity

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

    • initDataTracker

      protected void initDataTracker()
      Initializes data tracker.
      Overrides:
      initDataTracker in class DisplayEntity
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbfh;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()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.

      Overrides:
      onTrackedDataSet in class DisplayEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfh;a(Laby;)V
      intermediary method_5674 Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
      named onTrackedDataSet Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
    • getBlockState

      private BlockState getBlockState()
      Mappings:
      Namespace Name Mixin selector
      official o Lbfg$b;o()Ldby;
      intermediary method_48884 Lnet/minecraft/class_8113$class_8115;method_48884()Lnet/minecraft/class_2680;
      named getBlockState Lnet/minecraft/entity/decoration/DisplayEntity$BlockDisplayEntity;getBlockState()Lnet/minecraft/block/BlockState;
    • setBlockState

      private void setBlockState(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official c Lbfg$b;c(Ldby;)V
      intermediary method_48883 Lnet/minecraft/class_8113$class_8115;method_48883(Lnet/minecraft/class_2680;)V
      named setBlockState Lnet/minecraft/entity/decoration/DisplayEntity$BlockDisplayEntity;setBlockState(Lnet/minecraft/block/BlockState;)V
    • readCustomDataFromNbt

      protected void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses has 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
      official a Lbfh;a(Lqr;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • writeCustomDataToNbt

      protected void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses has 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
      official b Lbfh;b(Lqr;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • getData

      Mappings:
      Namespace Name Mixin selector
      official m Lbfg$b;m()Lbfg$b$a;
      intermediary method_49778 Lnet/minecraft/class_8113$class_8115;method_49778()Lnet/minecraft/class_8113$class_8115$class_8225;
      named getData Lnet/minecraft/entity/decoration/DisplayEntity$BlockDisplayEntity;getData()Lnet/minecraft/entity/decoration/DisplayEntity$BlockDisplayEntity$Data;
    • refreshData

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