Package net.minecraft.block.entity
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 akwintermediary net/minecraft/class_348named net/minecraft/block/entity/BlockEntity
-
Field Summary
Fields Modifier and Type Field Description protected Blockblockprivate static Map<Class<? extends BlockEntity>,String>classStringMapprivate intdataValueprivate static LoggerLOGGERprotected BlockPosposprotected booleanremovedprivate static Map<String,Class<? extends BlockEntity>>stringClassMapprotected Worldworld -
Constructor Summary
Constructors Constructor Description BlockEntity() -
Method Summary
Modifier and Type Method Description voidcancelRemoval()static BlockEntitycreateFromTag(CompoundTag tag)voidfromTag(CompoundTag tag)BlockgetBlock()intgetDataValue()PacketgetPacket()BlockPosgetPos()doublegetSquaredDistance(double x, double y, double z)doublegetSquaredRenderDistance()WorldgetWorld()booleanhasWorld()booleanisRemoved()voidmarkDirty()voidmarkRemoved()booleanonBlockAction(int int2, int int3)voidpopulateCrashReport(CrashReportSection section)private static voidregisterBlockEntity(Class<? extends BlockEntity> clazz, String stringId)voidresetBlock()voidsetPos(BlockPos pos)voidsetWorld(World world)booleanshouldNotCopyTagFromItem()voidtoTag(CompoundTag tag)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLakw;a:Lorg/apache/logging/log4j/Logger;intermediary field_1388Lnet/minecraft/class_348;field_1388:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/block/entity/BlockEntity;LOGGER:Lorg/apache/logging/log4j/Logger;
-
stringClassMap
- Mappings:
Namespace Name Mixin selector official fLakw;f:Ljava/util/Map;intermediary field_1393Lnet/minecraft/class_348;field_1393:Ljava/util/Map;named stringClassMapLnet/minecraft/block/entity/BlockEntity;stringClassMap:Ljava/util/Map;
-
classStringMap
- Mappings:
Namespace Name Mixin selector official gLakw;g:Ljava/util/Map;intermediary field_1394Lnet/minecraft/class_348;field_1394:Ljava/util/Map;named classStringMapLnet/minecraft/block/entity/BlockEntity;classStringMap:Ljava/util/Map;
-
world
- Mappings:
Namespace Name Mixin selector official bLakw;b:Ladm;intermediary field_1389Lnet/minecraft/class_348;field_1389:Lnet/minecraft/class_99;named worldLnet/minecraft/block/entity/BlockEntity;world:Lnet/minecraft/world/World;
-
pos
- Mappings:
Namespace Name Mixin selector official cLakw;c:Lcj;intermediary field_1390Lnet/minecraft/class_348;field_1390:Lnet/minecraft/class_1372;named posLnet/minecraft/block/entity/BlockEntity;pos:Lnet/minecraft/util/math/BlockPos;
-
removed
protected boolean removed- Mappings:
Namespace Name Mixin selector official dLakw;d:Zintermediary field_1391Lnet/minecraft/class_348;field_1391:Znamed removedLnet/minecraft/block/entity/BlockEntity;removed:Z
-
dataValue
private int dataValue- Mappings:
Namespace Name Mixin selector official hLakw;h:Iintermediary field_1395Lnet/minecraft/class_348;field_1395:Inamed dataValueLnet/minecraft/block/entity/BlockEntity;dataValue:I
-
block
- Mappings:
Namespace Name Mixin selector official eLakw;e:Lafh;intermediary field_1392Lnet/minecraft/class_348;field_1392:Lnet/minecraft/class_160;named blockLnet/minecraft/block/entity/BlockEntity;block:Lnet/minecraft/block/Block;
-
-
Constructor Details
-
BlockEntity
public BlockEntity()
-
-
Method Details
-
registerBlockEntity
- Mappings:
Namespace Name Mixin selector official aLakw;a(Ljava/lang/Class;Ljava/lang/String;)Vintermediary method_1099Lnet/minecraft/class_348;method_1099(Ljava/lang/Class;Ljava/lang/String;)Vnamed registerBlockEntityLnet/minecraft/block/entity/BlockEntity;registerBlockEntity(Ljava/lang/Class;Ljava/lang/String;)V
-
getWorld
- Mappings:
Namespace Name Mixin selector official zLakw;z()Ladm;intermediary method_1112Lnet/minecraft/class_348;method_1112()Lnet/minecraft/class_99;named getWorldLnet/minecraft/block/entity/BlockEntity;getWorld()Lnet/minecraft/world/World;
-
setWorld
- Mappings:
Namespace Name Mixin selector official aLakw;a(Ladm;)Vintermediary method_1095Lnet/minecraft/class_348;method_1095(Lnet/minecraft/class_99;)Vnamed setWorldLnet/minecraft/block/entity/BlockEntity;setWorld(Lnet/minecraft/world/World;)V
-
hasWorld
public boolean hasWorld()- Mappings:
Namespace Name Mixin selector official tLakw;t()Zintermediary method_1105Lnet/minecraft/class_348;method_1105()Znamed hasWorldLnet/minecraft/block/entity/BlockEntity;hasWorld()Z
-
fromTag
- Mappings:
Namespace Name Mixin selector official aLakw;a(Ldn;)Vintermediary method_1098Lnet/minecraft/class_348;method_1098(Lnet/minecraft/class_1405;)Vnamed fromTagLnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
toTag
- Mappings:
Namespace Name Mixin selector official bLakw;b(Ldn;)Vintermediary method_1100Lnet/minecraft/class_348;method_1100(Lnet/minecraft/class_1405;)Vnamed toTagLnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)V
-
createFromTag
- Mappings:
Namespace Name Mixin selector official cLakw;c(Ldn;)Lakw;intermediary method_1102Lnet/minecraft/class_348;method_1102(Lnet/minecraft/class_1405;)Lnet/minecraft/class_348;named createFromTagLnet/minecraft/block/entity/BlockEntity;createFromTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/block/entity/BlockEntity;
-
getDataValue
public int getDataValue()- Mappings:
Namespace Name Mixin selector official uLakw;u()Iintermediary method_1106Lnet/minecraft/class_348;method_1106()Inamed getDataValueLnet/minecraft/block/entity/BlockEntity;getDataValue()I
-
markDirty
public void markDirty()- Mappings:
Namespace Name Mixin selector official p_Lakw;p_()Vintermediary method_1103Lnet/minecraft/class_348;method_1103()Vnamed markDirtyLnet/minecraft/block/entity/BlockEntity;markDirty()V
-
getSquaredDistance
- Mappings:
Namespace Name Mixin selector official aLakw;a(DDD)Dintermediary method_1094Lnet/minecraft/class_348;method_1094(DDD)Dnamed getSquaredDistanceLnet/minecraft/block/entity/BlockEntity;getSquaredDistance(DDD)D
-
getSquaredRenderDistance
- Mappings:
Namespace Name Mixin selector official sLakw;s()Dintermediary method_1104Lnet/minecraft/class_348;method_1104()Dnamed getSquaredRenderDistanceLnet/minecraft/block/entity/BlockEntity;getSquaredRenderDistance()D
-
getPos
- Mappings:
Namespace Name Mixin selector official vLakw;v()Lcj;intermediary method_1107Lnet/minecraft/class_348;method_1107()Lnet/minecraft/class_1372;named getPosLnet/minecraft/block/entity/BlockEntity;getPos()Lnet/minecraft/util/math/BlockPos;
-
getBlock
- Mappings:
Namespace Name Mixin selector official wLakw;w()Lafh;intermediary method_1108Lnet/minecraft/class_348;method_1108()Lnet/minecraft/class_160;named getBlockLnet/minecraft/block/entity/BlockEntity;getBlock()Lnet/minecraft/block/Block;
-
getPacket
- Mappings:
Namespace Name Mixin selector official y_Lakw;y_()Lff;intermediary method_1111Lnet/minecraft/class_348;method_1111()Lnet/minecraft/class_1457;named getPacketLnet/minecraft/block/entity/BlockEntity;getPacket()Lnet/minecraft/network/Packet;
-
isRemoved
public boolean isRemoved()- Mappings:
Namespace Name Mixin selector official xLakw;x()Zintermediary method_1109Lnet/minecraft/class_348;method_1109()Znamed isRemovedLnet/minecraft/block/entity/BlockEntity;isRemoved()Z
-
markRemoved
public void markRemoved()- Mappings:
Namespace Name Mixin selector official yLakw;y()Vintermediary method_1110Lnet/minecraft/class_348;method_1110()Vnamed markRemovedLnet/minecraft/block/entity/BlockEntity;markRemoved()V
-
cancelRemoval
public void cancelRemoval()- Mappings:
Namespace Name Mixin selector official DLakw;D()Vintermediary method_1090Lnet/minecraft/class_348;method_1090()Vnamed cancelRemovalLnet/minecraft/block/entity/BlockEntity;cancelRemoval()V
-
onBlockAction
public boolean onBlockAction(int int2, int int3)- Mappings:
Namespace Name Mixin selector official cLakw;c(II)Zintermediary method_1101Lnet/minecraft/class_348;method_1101(II)Znamed onBlockActionLnet/minecraft/block/entity/BlockEntity;onBlockAction(II)Z
-
resetBlock
public void resetBlock()- Mappings:
Namespace Name Mixin selector official ELakw;E()Vintermediary method_1091Lnet/minecraft/class_348;method_1091()Vnamed resetBlockLnet/minecraft/block/entity/BlockEntity;resetBlock()V
-
populateCrashReport
- Mappings:
Namespace Name Mixin selector official aLakw;a(Lc;)Vintermediary method_1096Lnet/minecraft/class_348;method_1096(Lnet/minecraft/class_1364;)Vnamed populateCrashReportLnet/minecraft/block/entity/BlockEntity;populateCrashReport(Lnet/minecraft/util/crash/CrashReportSection;)V
-
setPos
- Mappings:
Namespace Name Mixin selector official aLakw;a(Lcj;)Vintermediary method_1097Lnet/minecraft/class_348;method_1097(Lnet/minecraft/class_1372;)Vnamed setPosLnet/minecraft/block/entity/BlockEntity;setPos(Lnet/minecraft/util/math/BlockPos;)V
-
shouldNotCopyTagFromItem
public boolean shouldNotCopyTagFromItem()- Mappings:
Namespace Name Mixin selector official FLakw;F()Zintermediary method_1092Lnet/minecraft/class_348;method_1092()Znamed shouldNotCopyTagFromItemLnet/minecraft/block/entity/BlockEntity;shouldNotCopyTagFromItem()Z
-