Class DisplayEntity.BlockDisplayEntity

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

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

    • BLOCK_STATE_NBT_KEY

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

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

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

    • BlockDisplayEntity

      public BlockDisplayEntity(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
    • getBlockState

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

      private void setBlockState(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named setBlockState Lnet/minecraft/entity/decoration/DisplayEntity$BlockDisplayEntity;setBlockState(Lnet/minecraft/block/BlockState;)V
      intermediary method_48883 Lnet/minecraft/class_8113$class_8115;method_48883(Lnet/minecraft/class_2680;)V
      official c Lbvh$b;c(Ldxu;)V
    • 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
    • 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
    • getData

      Mappings:
      Namespace Name Mixin selector
      named getData Lnet/minecraft/entity/decoration/DisplayEntity$BlockDisplayEntity;getData()Lnet/minecraft/entity/decoration/DisplayEntity$BlockDisplayEntity$Data;
      intermediary method_49778 Lnet/minecraft/class_8113$class_8115;method_49778()Lnet/minecraft/class_8113$class_8115$class_8225;
      official s Lbvh$b;s()Lbvh$b$a;
    • 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