Class BlockEntity

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

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

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lakw;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_1388 Lnet/minecraft/class_348;field_1388:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/block/entity/BlockEntity;LOGGER:Lorg/apache/logging/log4j/Logger;
    • stringClassMap

      private static Map<String,​Class<? extends BlockEntity>> stringClassMap
      Mappings:
      Namespace Name Mixin selector
      official f Lakw;f:Ljava/util/Map;
      intermediary field_1393 Lnet/minecraft/class_348;field_1393:Ljava/util/Map;
      named stringClassMap Lnet/minecraft/block/entity/BlockEntity;stringClassMap:Ljava/util/Map;
    • classStringMap

      private static Map<Class<? extends BlockEntity>,​String> classStringMap
      Mappings:
      Namespace Name Mixin selector
      official g Lakw;g:Ljava/util/Map;
      intermediary field_1394 Lnet/minecraft/class_348;field_1394: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 Lakw;b:Ladm;
      intermediary field_1389 Lnet/minecraft/class_348;field_1389:Lnet/minecraft/class_99;
      named world Lnet/minecraft/block/entity/BlockEntity;world:Lnet/minecraft/world/World;
    • pos

      protected BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official c Lakw;c:Lcj;
      intermediary field_1390 Lnet/minecraft/class_348;field_1390:Lnet/minecraft/class_1372;
      named pos Lnet/minecraft/block/entity/BlockEntity;pos:Lnet/minecraft/util/math/BlockPos;
    • removed

      protected boolean removed
      Mappings:
      Namespace Name Mixin selector
      official d Lakw;d:Z
      intermediary field_1391 Lnet/minecraft/class_348;field_1391:Z
      named removed Lnet/minecraft/block/entity/BlockEntity;removed:Z
    • dataValue

      private int dataValue
      Mappings:
      Namespace Name Mixin selector
      official h Lakw;h:I
      intermediary field_1395 Lnet/minecraft/class_348;field_1395:I
      named dataValue Lnet/minecraft/block/entity/BlockEntity;dataValue:I
    • block

      protected Block block
      Mappings:
      Namespace Name Mixin selector
      official e Lakw;e:Lafh;
      intermediary field_1392 Lnet/minecraft/class_348;field_1392:Lnet/minecraft/class_160;
      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<? extends BlockEntity> clazz, String stringId)
      Mappings:
      Namespace Name Mixin selector
      official a Lakw;a(Ljava/lang/Class;Ljava/lang/String;)V
      intermediary method_1099 Lnet/minecraft/class_348;method_1099(Ljava/lang/Class;Ljava/lang/String;)V
      named registerBlockEntity Lnet/minecraft/block/entity/BlockEntity;registerBlockEntity(Ljava/lang/Class;Ljava/lang/String;)V
    • getWorld

      public World getWorld()
      Mappings:
      Namespace Name Mixin selector
      official z Lakw;z()Ladm;
      intermediary method_1112 Lnet/minecraft/class_348;method_1112()Lnet/minecraft/class_99;
      named getWorld Lnet/minecraft/block/entity/BlockEntity;getWorld()Lnet/minecraft/world/World;
    • setWorld

      public void setWorld​(World world)
      Mappings:
      Namespace Name Mixin selector
      official a Lakw;a(Ladm;)V
      intermediary method_1095 Lnet/minecraft/class_348;method_1095(Lnet/minecraft/class_99;)V
      named setWorld Lnet/minecraft/block/entity/BlockEntity;setWorld(Lnet/minecraft/world/World;)V
    • hasWorld

      public boolean hasWorld()
      Mappings:
      Namespace Name Mixin selector
      official t Lakw;t()Z
      intermediary method_1105 Lnet/minecraft/class_348;method_1105()Z
      named hasWorld Lnet/minecraft/block/entity/BlockEntity;hasWorld()Z
    • fromTag

      public void fromTag​(CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lakw;a(Ldn;)V
      intermediary method_1098 Lnet/minecraft/class_348;method_1098(Lnet/minecraft/class_1405;)V
      named fromTag Lnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
    • toTag

      public void toTag​(CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official b Lakw;b(Ldn;)V
      intermediary method_1100 Lnet/minecraft/class_348;method_1100(Lnet/minecraft/class_1405;)V
      named toTag Lnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)V
    • createFromTag

      public static BlockEntity createFromTag​(CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official c Lakw;c(Ldn;)Lakw;
      intermediary method_1102 Lnet/minecraft/class_348;method_1102(Lnet/minecraft/class_1405;)Lnet/minecraft/class_348;
      named createFromTag Lnet/minecraft/block/entity/BlockEntity;createFromTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/block/entity/BlockEntity;
    • getDataValue

      public int getDataValue()
      Mappings:
      Namespace Name Mixin selector
      official u Lakw;u()I
      intermediary method_1106 Lnet/minecraft/class_348;method_1106()I
      named getDataValue Lnet/minecraft/block/entity/BlockEntity;getDataValue()I
    • markDirty

      public void markDirty()
      Mappings:
      Namespace Name Mixin selector
      official p_ Lakw;p_()V
      intermediary method_1103 Lnet/minecraft/class_348;method_1103()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 Lakw;a(DDD)D
      intermediary method_1094 Lnet/minecraft/class_348;method_1094(DDD)D
      named getSquaredDistance Lnet/minecraft/block/entity/BlockEntity;getSquaredDistance(DDD)D
    • getSquaredRenderDistance

      @Environment(CLIENT) public double getSquaredRenderDistance()
      Mappings:
      Namespace Name Mixin selector
      official s Lakw;s()D
      intermediary method_1104 Lnet/minecraft/class_348;method_1104()D
      named getSquaredRenderDistance Lnet/minecraft/block/entity/BlockEntity;getSquaredRenderDistance()D
    • getPos

      public BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      official v Lakw;v()Lcj;
      intermediary method_1107 Lnet/minecraft/class_348;method_1107()Lnet/minecraft/class_1372;
      named getPos Lnet/minecraft/block/entity/BlockEntity;getPos()Lnet/minecraft/util/math/BlockPos;
    • getBlock

      public Block getBlock()
      Mappings:
      Namespace Name Mixin selector
      official w Lakw;w()Lafh;
      intermediary method_1108 Lnet/minecraft/class_348;method_1108()Lnet/minecraft/class_160;
      named getBlock Lnet/minecraft/block/entity/BlockEntity;getBlock()Lnet/minecraft/block/Block;
    • getPacket

      public Packet getPacket()
      Mappings:
      Namespace Name Mixin selector
      official y_ Lakw;y_()Lff;
      intermediary method_1111 Lnet/minecraft/class_348;method_1111()Lnet/minecraft/class_1457;
      named getPacket Lnet/minecraft/block/entity/BlockEntity;getPacket()Lnet/minecraft/network/Packet;
    • isRemoved

      public boolean isRemoved()
      Mappings:
      Namespace Name Mixin selector
      official x Lakw;x()Z
      intermediary method_1109 Lnet/minecraft/class_348;method_1109()Z
      named isRemoved Lnet/minecraft/block/entity/BlockEntity;isRemoved()Z
    • markRemoved

      public void markRemoved()
      Mappings:
      Namespace Name Mixin selector
      official y Lakw;y()V
      intermediary method_1110 Lnet/minecraft/class_348;method_1110()V
      named markRemoved Lnet/minecraft/block/entity/BlockEntity;markRemoved()V
    • cancelRemoval

      public void cancelRemoval()
      Mappings:
      Namespace Name Mixin selector
      official D Lakw;D()V
      intermediary method_1090 Lnet/minecraft/class_348;method_1090()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 Lakw;c(II)Z
      intermediary method_1101 Lnet/minecraft/class_348;method_1101(II)Z
      named onBlockAction Lnet/minecraft/block/entity/BlockEntity;onBlockAction(II)Z
    • resetBlock

      public void resetBlock()
      Mappings:
      Namespace Name Mixin selector
      official E Lakw;E()V
      intermediary method_1091 Lnet/minecraft/class_348;method_1091()V
      named resetBlock Lnet/minecraft/block/entity/BlockEntity;resetBlock()V
    • populateCrashReport

      public void populateCrashReport​(CrashReportSection section)
      Mappings:
      Namespace Name Mixin selector
      official a Lakw;a(Lc;)V
      intermediary method_1096 Lnet/minecraft/class_348;method_1096(Lnet/minecraft/class_1364;)V
      named populateCrashReport Lnet/minecraft/block/entity/BlockEntity;populateCrashReport(Lnet/minecraft/util/crash/CrashReportSection;)V
    • setPos

      public void setPos​(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lakw;a(Lcj;)V
      intermediary method_1097 Lnet/minecraft/class_348;method_1097(Lnet/minecraft/class_1372;)V
      named setPos Lnet/minecraft/block/entity/BlockEntity;setPos(Lnet/minecraft/util/math/BlockPos;)V
    • shouldNotCopyTagFromItem

      public boolean shouldNotCopyTagFromItem()
      Mappings:
      Namespace Name Mixin selector
      official F Lakw;F()Z
      intermediary method_1092 Lnet/minecraft/class_348;method_1092()Z
      named shouldNotCopyTagFromItem Lnet/minecraft/block/entity/BlockEntity;shouldNotCopyTagFromItem()Z