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:Lacl;
      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;
  • Constructor Details

    • BlockDisplayEntity

      public BlockDisplayEntity(EntityType<?> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfh;<init>(Lbfl;Lcmi;)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
    • getBlockState

      public BlockState getBlockState()
      Mappings:
      Namespace Name Mixin selector
      official o Lbfg$b;o()Ldbq;
      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

      public void setBlockState(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official b Lbfg$b;b(Ldbq;)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(Lre;)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(Lre;)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