Class BlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
Direct Known Subclasses:
BannerBlockEntity, BedBlockEntity, CommandBlockBlockEntity, ComparatorBlockEntity, DaylightDetectorBlockEntity, EnchantingTableBlockEntity, EnderChestBlockEntity, EndPortalBlockEntity, FlowerPotBlockEntity, JukeboxBlock.JukeboxBlockEntity, LockableContainerBlockEntity, MobSpawnerBlockEntity, NoteBlockBlockEntity, PistonBlockEntity, SignBlockEntity, SkullBlockEntity, StructureBlockEntity

public abstract class BlockEntity extends Object
Mappings:
Namespace Name
official avj
intermediary net/minecraft/class_226
named net/minecraft/block/entity/BlockEntity
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lavj;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_7494 Lnet/minecraft/class_226;field_7494:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/block/entity/BlockEntity;LOGGER:Lorg/apache/logging/log4j/Logger;
    • BLOCK_ENTITY

      private static final SimpleRegistry<Identifier,Class<? extends BlockEntity>> BLOCK_ENTITY
      Mappings:
      Namespace Name Mixin selector
      official f Lavj;f:Lfh;
      intermediary field_15150 Lnet/minecraft/class_226;field_15150:Lnet/minecraft/class_1943;
      named BLOCK_ENTITY Lnet/minecraft/block/entity/BlockEntity;BLOCK_ENTITY:Lnet/minecraft/util/registry/SimpleRegistry;
    • world

      protected World world
      Mappings:
      Namespace Name Mixin selector
      official b Lavj;b:Lamu;
      intermediary field_565 Lnet/minecraft/class_226;field_565:Lnet/minecraft/class_1150;
      named world Lnet/minecraft/block/entity/BlockEntity;world:Lnet/minecraft/world/World;
    • pos

      protected BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official c Lavj;c:Let;
      intermediary field_9849 Lnet/minecraft/class_226;field_9849:Lnet/minecraft/class_2552;
      named pos Lnet/minecraft/block/entity/BlockEntity;pos:Lnet/minecraft/util/math/BlockPos;
    • removed

      protected boolean removed
      Mappings:
      Namespace Name Mixin selector
      official d Lavj;d:Z
      intermediary field_569 Lnet/minecraft/class_226;field_569:Z
      named removed Lnet/minecraft/block/entity/BlockEntity;removed:Z
    • dataValue

      private int dataValue
      Mappings:
      Namespace Name Mixin selector
      official g Lavj;g:I
      intermediary field_570 Lnet/minecraft/class_226;field_570:I
      named dataValue Lnet/minecraft/block/entity/BlockEntity;dataValue:I
    • block

      protected Block block
      Mappings:
      Namespace Name Mixin selector
      official e Lavj;e:Laow;
      intermediary field_571 Lnet/minecraft/class_226;field_571:Lnet/minecraft/class_197;
      named block Lnet/minecraft/block/entity/BlockEntity;block:Lnet/minecraft/block/Block;
  • Constructor Details

    • BlockEntity

      public BlockEntity()
  • Method Details

    • addBlockEntity

      private static void addBlockEntity(String identifier, Class<? extends BlockEntity> clazz)
      Mappings:
      Namespace Name Mixin selector
      official a Lavj;a(Ljava/lang/String;Ljava/lang/Class;)V
      intermediary method_13724 Lnet/minecraft/class_226;method_13724(Ljava/lang/String;Ljava/lang/Class;)V
      named addBlockEntity Lnet/minecraft/block/entity/BlockEntity;addBlockEntity(Ljava/lang/String;Ljava/lang/Class;)V
    • getIdentifier

      @Nullable public static Identifier getIdentifier(Class<? extends BlockEntity> clazz)
      Mappings:
      Namespace Name Mixin selector
      official a Lavj;a(Ljava/lang/Class;)Lnf;
      intermediary method_13723 Lnet/minecraft/class_226;method_13723(Ljava/lang/Class;)Lnet/minecraft/class_1653;
      named getIdentifier Lnet/minecraft/block/entity/BlockEntity;getIdentifier(Ljava/lang/Class;)Lnet/minecraft/util/Identifier;
    • getEntityWorld

      public World getEntityWorld()
      Mappings:
      Namespace Name Mixin selector
      official D Lavj;D()Lamu;
      intermediary method_548 Lnet/minecraft/class_226;method_548()Lnet/minecraft/class_1150;
      named getEntityWorld Lnet/minecraft/block/entity/BlockEntity;getEntityWorld()Lnet/minecraft/world/World;
    • setWorld

      public void setWorld(World world)
      Mappings:
      Namespace Name Mixin selector
      official a Lavj;a(Lamu;)V
      intermediary method_539 Lnet/minecraft/class_226;method_539(Lnet/minecraft/class_1150;)V
      named setWorld Lnet/minecraft/block/entity/BlockEntity;setWorld(Lnet/minecraft/world/World;)V
    • hasWorld

      public boolean hasWorld()
      Mappings:
      Namespace Name Mixin selector
      official u Lavj;u()Z
      intermediary method_549 Lnet/minecraft/class_226;method_549()Z
      named hasWorld Lnet/minecraft/block/entity/BlockEntity;hasWorld()Z
    • fromNbt

      public void fromNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lavj;a(Lfy;)V
      intermediary method_537 Lnet/minecraft/class_226;method_537(Lnet/minecraft/class_322;)V
      named fromNbt Lnet/minecraft/block/entity/BlockEntity;fromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • method_541

      public NbtCompound method_541(NbtCompound nbtCompound)
      Mappings:
      Namespace Name Mixin selector
      official b Lavj;b(Lfy;)Lfy;
      intermediary method_541 Lnet/minecraft/class_226;method_541(Lnet/minecraft/class_322;)Lnet/minecraft/class_322;
      named method_541 Lnet/minecraft/block/entity/BlockEntity;method_541(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
    • method_11648

      private NbtCompound method_11648(NbtCompound tag)
      Mappings:
      Namespace Name Mixin selector
      official c Lavj;c(Lfy;)Lfy;
      intermediary method_11648 Lnet/minecraft/class_226;method_11648(Lnet/minecraft/class_322;)Lnet/minecraft/class_322;
      named method_11648 Lnet/minecraft/block/entity/BlockEntity;method_11648(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
    • create

      @Nullable public static BlockEntity create(World world, NbtCompound tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lavj;a(Lamu;Lfy;)Lavj;
      intermediary method_13320 Lnet/minecraft/class_226;method_13320(Lnet/minecraft/class_1150;Lnet/minecraft/class_322;)Lnet/minecraft/class_226;
      named create Lnet/minecraft/block/entity/BlockEntity;create(Lnet/minecraft/world/World;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/block/entity/BlockEntity;
    • method_13323

      protected void method_13323(World world)
      Mappings:
      Namespace Name Mixin selector
      official b Lavj;b(Lamu;)V
      intermediary method_13323 Lnet/minecraft/class_226;method_13323(Lnet/minecraft/class_1150;)V
      named method_13323 Lnet/minecraft/block/entity/BlockEntity;method_13323(Lnet/minecraft/world/World;)V
    • getDataValue

      public int getDataValue()
      Mappings:
      Namespace Name Mixin selector
      official v Lavj;v()I
      intermediary method_550 Lnet/minecraft/class_226;method_550()I
      named getDataValue Lnet/minecraft/block/entity/BlockEntity;getDataValue()I
    • markDirty

      public void markDirty()
      Mappings:
      Namespace Name Mixin selector
      official y_ Lavj;y_()V
      intermediary method_543 Lnet/minecraft/class_226;method_543()V
      named markDirty Lnet/minecraft/block/entity/BlockEntity;markDirty()V
    • getSquaredDistance

      @Environment(CLIENT) public double getSquaredDistance(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official a Lavj;a(DDD)D
      intermediary method_536 Lnet/minecraft/class_226;method_536(DDD)D
      named getSquaredDistance Lnet/minecraft/block/entity/BlockEntity;getSquaredDistance(DDD)D
    • getSquaredRenderDistance

      @Environment(CLIENT) public double getSquaredRenderDistance()
      Mappings:
      Namespace Name Mixin selector
      official t Lavj;t()D
      intermediary method_4216 Lnet/minecraft/class_226;method_4216()D
      named getSquaredRenderDistance Lnet/minecraft/block/entity/BlockEntity;getSquaredRenderDistance()D
    • getPos

      public BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      official w Lavj;w()Let;
      intermediary method_8983 Lnet/minecraft/class_226;method_8983()Lnet/minecraft/class_2552;
      named getPos Lnet/minecraft/block/entity/BlockEntity;getPos()Lnet/minecraft/util/math/BlockPos;
    • getBlock

      public Block getBlock()
      Mappings:
      Namespace Name Mixin selector
      official x Lavj;x()Laow;
      intermediary method_551 Lnet/minecraft/class_226;method_551()Lnet/minecraft/class_197;
      named getBlock Lnet/minecraft/block/entity/BlockEntity;getBlock()Lnet/minecraft/block/Block;
    • getUpdatePacket

      @Nullable public BlockEntityUpdateS2CPacket getUpdatePacket()
      Mappings:
      Namespace Name Mixin selector
      official c Lavj;c()Lih;
      intermediary method_544 Lnet/minecraft/class_226;method_544()Lnet/minecraft/class_2003;
      named getUpdatePacket Lnet/minecraft/block/entity/BlockEntity;getUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
    • method_11646

      public NbtCompound method_11646()
      Mappings:
      Namespace Name Mixin selector
      official d Lavj;d()Lfy;
      intermediary method_11646 Lnet/minecraft/class_226;method_11646()Lnet/minecraft/class_322;
      named method_11646 Lnet/minecraft/block/entity/BlockEntity;method_11646()Lnet/minecraft/nbt/NbtCompound;
    • isRemoved

      public boolean isRemoved()
      Mappings:
      Namespace Name Mixin selector
      official y Lavj;y()Z
      intermediary method_552 Lnet/minecraft/class_226;method_552()Z
      named isRemoved Lnet/minecraft/block/entity/BlockEntity;isRemoved()Z
    • markRemoved

      public void markRemoved()
      Mappings:
      Namespace Name Mixin selector
      official z Lavj;z()V
      intermediary method_547 Lnet/minecraft/class_226;method_547()V
      named markRemoved Lnet/minecraft/block/entity/BlockEntity;markRemoved()V
    • cancelRemoval

      public void cancelRemoval()
      Mappings:
      Namespace Name Mixin selector
      official A Lavj;A()V
      intermediary method_553 Lnet/minecraft/class_226;method_553()V
      named cancelRemoval Lnet/minecraft/block/entity/BlockEntity;cancelRemoval()V
    • onBlockAction

      public boolean onBlockAction(int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      official c Lavj;c(II)Z
      intermediary method_4838 Lnet/minecraft/class_226;method_4838(II)Z
      named onBlockAction Lnet/minecraft/block/entity/BlockEntity;onBlockAction(II)Z
    • resetBlock

      public void resetBlock()
      Mappings:
      Namespace Name Mixin selector
      official B Lavj;B()V
      intermediary method_546 Lnet/minecraft/class_226;method_546()V
      named resetBlock Lnet/minecraft/block/entity/BlockEntity;resetBlock()V
    • populateCrashReport

      public void populateCrashReport(CrashReportSection section)
      Mappings:
      Namespace Name Mixin selector
      official a Lavj;a(Lc;)V
      intermediary method_4215 Lnet/minecraft/class_226;method_4215(Lnet/minecraft/class_1392;)V
      named populateCrashReport Lnet/minecraft/block/entity/BlockEntity;populateCrashReport(Lnet/minecraft/util/crash/CrashReportSection;)V
    • setPosition

      public void setPosition(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lavj;a(Let;)V
      intermediary method_11647 Lnet/minecraft/class_226;method_11647(Lnet/minecraft/class_2552;)V
      named setPosition Lnet/minecraft/block/entity/BlockEntity;setPosition(Lnet/minecraft/util/math/BlockPos;)V
    • shouldNotCopyNbtFromItem

      public boolean shouldNotCopyNbtFromItem()
      Mappings:
      Namespace Name Mixin selector
      official C Lavj;C()Z
      intermediary method_8981 Lnet/minecraft/class_226;method_8981()Z
      named shouldNotCopyNbtFromItem Lnet/minecraft/block/entity/BlockEntity;shouldNotCopyNbtFromItem()Z
    • method_6344

      @Nullable public Text method_6344()
      Mappings:
      Namespace Name Mixin selector
      official i_ Lavj;i_()Lhh;
      intermediary method_6344 Lnet/minecraft/class_226;method_6344()Lnet/minecraft/class_1982;
      named method_6344 Lnet/minecraft/block/entity/BlockEntity;method_6344()Lnet/minecraft/text/Text;
    • method_13322

      public void method_13322(BlockRotation rotation)
      Mappings:
      Namespace Name Mixin selector
      official a Lavj;a(Latm;)V
      intermediary method_13322 Lnet/minecraft/class_226;method_13322(Lnet/minecraft/class_2734;)V
      named method_13322 Lnet/minecraft/block/entity/BlockEntity;method_13322(Lnet/minecraft/util/BlockRotation;)V
    • method_13321

      public void method_13321(BlockMirror mirror)
      Mappings:
      Namespace Name Mixin selector
      official a Lavj;a(Lary;)V
      intermediary method_13321 Lnet/minecraft/class_226;method_13321(Lnet/minecraft/class_2727;)V
      named method_13321 Lnet/minecraft/block/entity/BlockEntity;method_13321(Lnet/minecraft/util/BlockMirror;)V