Class BlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
Direct Known Subclasses:
BeaconBlockEntity, BrewingStandBlockEntity, ChestBlockEntity, CommandBlockBlockEntity, ComparatorBlockEntity, DaylightDetectorBlockEntity, DispenserBlockEntity, EnchantingTableBlockEntity, EnderChestBlockEntity, EndPortalBlockEntity, FlowerPotBlockEntity, FurnaceBlockEntity, HopperBlockEntity, JukeboxBlockEntity, MobSpawnerBlockEntity, NoteBlockBlockEntity, PistonBlockEntity, SignBlockEntity, SkullBlockEntity

public class BlockEntity extends Object
Mappings:
Namespace Name
official anc
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 Lanc;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;
    • stringClassMap

      private static Map stringClassMap
      Mappings:
      Namespace Name Mixin selector
      official i Lanc;i:Ljava/util/Map;
      intermediary field_563 Lnet/minecraft/class_226;field_563:Ljava/util/Map;
      named stringClassMap Lnet/minecraft/block/entity/BlockEntity;stringClassMap:Ljava/util/Map;
    • classStringMap

      private static Map classStringMap
      Mappings:
      Namespace Name Mixin selector
      official j Lanc;j:Ljava/util/Map;
      intermediary field_564 Lnet/minecraft/class_226;field_564:Ljava/util/Map;
      named classStringMap Lnet/minecraft/block/entity/BlockEntity;classStringMap:Ljava/util/Map;
    • world

      protected World world
      Mappings:
      Namespace Name Mixin selector
      official b Lanc;b:Lafm;
      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;
    • x

      public int x
      Mappings:
      Namespace Name Mixin selector
      official c Lanc;c:I
      intermediary field_566 Lnet/minecraft/class_226;field_566:I
      named x Lnet/minecraft/block/entity/BlockEntity;x:I
    • y

      public int y
      Mappings:
      Namespace Name Mixin selector
      official d Lanc;d:I
      intermediary field_567 Lnet/minecraft/class_226;field_567:I
      named y Lnet/minecraft/block/entity/BlockEntity;y:I
    • z

      public int z
      Mappings:
      Namespace Name Mixin selector
      official e Lanc;e:I
      intermediary field_568 Lnet/minecraft/class_226;field_568:I
      named z Lnet/minecraft/block/entity/BlockEntity;z:I
    • removed

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

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

      public Block block
      Mappings:
      Namespace Name Mixin selector
      official h Lanc;h:Laht;
      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

    • registerBlockEntity

      private static void registerBlockEntity(Class clazz, String stringId)
      Mappings:
      Namespace Name Mixin selector
      official a Lanc;a(Ljava/lang/Class;Ljava/lang/String;)V
      intermediary method_538 Lnet/minecraft/class_226;method_538(Ljava/lang/Class;Ljava/lang/String;)V
      named registerBlockEntity Lnet/minecraft/block/entity/BlockEntity;registerBlockEntity(Ljava/lang/Class;Ljava/lang/String;)V
    • getEntityWorld

      public World getEntityWorld()
      Mappings:
      Namespace Name Mixin selector
      official w Lanc;w()Lafm;
      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 Lanc;a(Lafm;)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 o Lanc;o()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 Lanc;a(Ldg;)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
    • toNbt

      public void toNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official b Lanc;b(Ldg;)V
      intermediary method_541 Lnet/minecraft/class_226;method_541(Lnet/minecraft/class_322;)V
      named toNbt Lnet/minecraft/block/entity/BlockEntity;toNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • method_545

      public void method_545()
      Mappings:
      Namespace Name Mixin selector
      official h Lanc;h()V
      intermediary method_545 Lnet/minecraft/class_226;method_545()V
      named method_545 Lnet/minecraft/block/entity/BlockEntity;method_545()V
    • createFromNbt

      public static BlockEntity createFromNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official c Lanc;c(Ldg;)Lanc;
      intermediary method_542 Lnet/minecraft/class_226;method_542(Lnet/minecraft/class_322;)Lnet/minecraft/class_226;
      named createFromNbt Lnet/minecraft/block/entity/BlockEntity;createFromNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/block/entity/BlockEntity;
    • getDataValue

      public int getDataValue()
      Mappings:
      Namespace Name Mixin selector
      official p Lanc;p()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 e Lanc;e()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 Lanc;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 n Lanc;n()D
      intermediary method_4216 Lnet/minecraft/class_226;method_4216()D
      named getSquaredRenderDistance Lnet/minecraft/block/entity/BlockEntity;getSquaredRenderDistance()D
    • getBlock

      public Block getBlock()
      Mappings:
      Namespace Name Mixin selector
      official q Lanc;q()Laht;
      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;
    • getPacket

      public Packet getPacket()
      Mappings:
      Namespace Name Mixin selector
      official m Lanc;m()Lfj;
      intermediary method_544 Lnet/minecraft/class_226;method_544()Lnet/minecraft/class_700;
      named getPacket Lnet/minecraft/block/entity/BlockEntity;getPacket()Lnet/minecraft/network/Packet;
    • isRemoved

      public boolean isRemoved()
      Mappings:
      Namespace Name Mixin selector
      official r Lanc;r()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 s Lanc;s()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 t Lanc;t()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 Lanc;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 u Lanc;u()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 Lanc;a(Lk;)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