Package net.minecraft.block.entity
Class BlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
- Direct Known Subclasses:
BannerBlockEntity
,BeaconBlockEntity
,BedBlockEntity
,BeehiveBlockEntity
,BellBlockEntity
,CampfireBlockEntity
,CommandBlockBlockEntity
,ComparatorBlockEntity
,ConduitBlockEntity
,DaylightDetectorBlockEntity
,EnchantingTableBlockEntity
,EnderChestBlockEntity
,EndPortalBlockEntity
,JigsawBlockEntity
,JukeboxBlockEntity
,LecternBlockEntity
,LockableContainerBlockEntity
,MobSpawnerBlockEntity
,PistonBlockEntity
,SculkSensorBlockEntity
,SignBlockEntity
,SkullBlockEntity
,StructureBlockBlockEntity
public abstract class BlockEntity extends Object
- Mappings:
Namespace Name official cfr
intermediary net/minecraft/class_2586
named net/minecraft/block/entity/BlockEntity
-
Field Summary
Fields Modifier and Type Field Description private BlockState
cachedState
private static Logger
LOGGER
protected BlockPos
pos
protected boolean
removed
private BlockEntityType<?>
type
protected World
world
-
Constructor Summary
Constructors Constructor Description BlockEntity(BlockEntityType<?> type, BlockPos pos, BlockState state)
-
Method Summary
Modifier and Type Method Description void
cancelRemoval()
boolean
copyItemDataRequiresOperator()
static BlockEntity
createFromTag(BlockPos pos, BlockState state, CompoundTag tag)
void
fromTag(CompoundTag tag)
BlockState
getCachedState()
BlockPos
getPos()
double
getSquaredRenderDistance()
BlockEntityType<?>
getType()
World
getWorld()
boolean
hasWorld()
boolean
isRemoved()
void
markDirty()
protected static void
markDirty(World world, BlockPos pos, BlockState state)
void
markRemoved()
boolean
onSyncedBlockEvent(int type, int data)
void
populateCrashReport(CrashReportSection crashReportSection)
void
setCachedState(BlockState state)
Deprecated.void
setWorld(World world)
CompoundTag
toInitialChunkDataTag()
CompoundTag
toTag(CompoundTag tag)
BlockEntityUpdateS2CPacket
toUpdatePacket()
private CompoundTag
writeIdentifyingData(CompoundTag tag)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a:Lorg/apache/logging/log4j/Logger;
intermediary field_11868
Lnet/minecraft/class_2586;field_11868:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/block/entity/BlockEntity;LOGGER:Lorg/apache/logging/log4j/Logger;
-
type
- Mappings:
Namespace Name Mixin selector official b
Lcfr;b:Lcft;
intermediary field_11864
Lnet/minecraft/class_2586;field_11864:Lnet/minecraft/class_2591;
named type
Lnet/minecraft/block/entity/BlockEntity;type:Lnet/minecraft/block/entity/BlockEntityType;
-
world
- Mappings:
Namespace Name Mixin selector official d
Lcfr;d:Lbtv;
intermediary field_11863
Lnet/minecraft/class_2586;field_11863:Lnet/minecraft/class_1937;
named world
Lnet/minecraft/block/entity/BlockEntity;world:Lnet/minecraft/world/World;
-
pos
- Mappings:
Namespace Name Mixin selector official e
Lcfr;e:Lfx;
intermediary field_11867
Lnet/minecraft/class_2586;field_11867:Lnet/minecraft/class_2338;
named pos
Lnet/minecraft/block/entity/BlockEntity;pos:Lnet/minecraft/util/math/BlockPos;
-
removed
protected boolean removed- Mappings:
Namespace Name Mixin selector official f
Lcfr;f:Z
intermediary field_11865
Lnet/minecraft/class_2586;field_11865:Z
named removed
Lnet/minecraft/block/entity/BlockEntity;removed:Z
-
cachedState
- Mappings:
Namespace Name Mixin selector official c
Lcfr;c:Lcht;
intermediary field_11866
Lnet/minecraft/class_2586;field_11866:Lnet/minecraft/class_2680;
named cachedState
Lnet/minecraft/block/entity/BlockEntity;cachedState:Lnet/minecraft/block/BlockState;
-
-
Constructor Details
-
BlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lcfr;<init>(Lcft;Lfx;Lcht;)V
intermediary <init>
Lnet/minecraft/class_2586;<init>(Lnet/minecraft/class_2591;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named <init>
Lnet/minecraft/block/entity/BlockEntity;<init>(Lnet/minecraft/block/entity/BlockEntityType;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
getWorld
- Mappings:
Namespace Name Mixin selector official l
Lcfr;l()Lbtv;
intermediary method_10997
Lnet/minecraft/class_2586;method_10997()Lnet/minecraft/class_1937;
named getWorld
Lnet/minecraft/block/entity/BlockEntity;getWorld()Lnet/minecraft/world/World;
-
setWorld
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a(Lbtv;)V
intermediary method_31662
Lnet/minecraft/class_2586;method_31662(Lnet/minecraft/class_1937;)V
named setWorld
Lnet/minecraft/block/entity/BlockEntity;setWorld(Lnet/minecraft/world/World;)V
-
hasWorld
public boolean hasWorld()- Mappings:
Namespace Name Mixin selector official m
Lcfr;m()Z
intermediary method_11002
Lnet/minecraft/class_2586;method_11002()Z
named hasWorld
Lnet/minecraft/block/entity/BlockEntity;hasWorld()Z
-
fromTag
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a(Lmq;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named fromTag
Lnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
toTag
- Mappings:
Namespace Name Mixin selector official b
Lcfr;b(Lmq;)Lmq;
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named toTag
Lnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
writeIdentifyingData
- Mappings:
Namespace Name Mixin selector official c
Lcfr;c(Lmq;)Lmq;
intermediary method_10999
Lnet/minecraft/class_2586;method_10999(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named writeIdentifyingData
Lnet/minecraft/block/entity/BlockEntity;writeIdentifyingData(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
createFromTag
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a(Lfx;Lcht;Lmq;)Lcfr;
intermediary method_11005
Lnet/minecraft/class_2586;method_11005(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2586;
named createFromTag
Lnet/minecraft/block/entity/BlockEntity;createFromTag(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/block/entity/BlockEntity;
-
markDirty
public void markDirty()- Mappings:
Namespace Name Mixin selector official Y_
Lcfr;Y_()V
intermediary method_5431
Lnet/minecraft/class_2586;method_5431()V
named markDirty
Lnet/minecraft/block/entity/BlockEntity;markDirty()V
-
markDirty
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a(Lbtv;Lfx;Lcht;)V
intermediary method_31663
Lnet/minecraft/class_2586;method_31663(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named markDirty
Lnet/minecraft/block/entity/BlockEntity;markDirty(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
getSquaredRenderDistance
- Mappings:
Namespace Name Mixin selector official ap_
Lcfr;ap_()D
intermediary method_11006
Lnet/minecraft/class_2586;method_11006()D
named getSquaredRenderDistance
Lnet/minecraft/block/entity/BlockEntity;getSquaredRenderDistance()D
-
getPos
- Mappings:
Namespace Name Mixin selector official n
Lcfr;n()Lfx;
intermediary method_11016
Lnet/minecraft/class_2586;method_11016()Lnet/minecraft/class_2338;
named getPos
Lnet/minecraft/block/entity/BlockEntity;getPos()Lnet/minecraft/util/math/BlockPos;
-
getCachedState
- Mappings:
Namespace Name Mixin selector official o
Lcfr;o()Lcht;
intermediary method_11010
Lnet/minecraft/class_2586;method_11010()Lnet/minecraft/class_2680;
named getCachedState
Lnet/minecraft/block/entity/BlockEntity;getCachedState()Lnet/minecraft/block/BlockState;
-
toUpdatePacket
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a()Lpo;
intermediary method_16886
Lnet/minecraft/class_2586;method_16886()Lnet/minecraft/class_2622;
named toUpdatePacket
Lnet/minecraft/block/entity/BlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
toInitialChunkDataTag
- Mappings:
Namespace Name Mixin selector official b
Lcfr;b()Lmq;
intermediary method_16887
Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;
named toInitialChunkDataTag
Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataTag()Lnet/minecraft/nbt/CompoundTag;
-
isRemoved
public boolean isRemoved()- Mappings:
Namespace Name Mixin selector official p
Lcfr;p()Z
intermediary method_11015
Lnet/minecraft/class_2586;method_11015()Z
named isRemoved
Lnet/minecraft/block/entity/BlockEntity;isRemoved()Z
-
markRemoved
public void markRemoved()- Mappings:
Namespace Name Mixin selector official aq_
Lcfr;aq_()V
intermediary method_11012
Lnet/minecraft/class_2586;method_11012()V
named markRemoved
Lnet/minecraft/block/entity/BlockEntity;markRemoved()V
-
cancelRemoval
public void cancelRemoval()- Mappings:
Namespace Name Mixin selector official q
Lcfr;q()V
intermediary method_10996
Lnet/minecraft/class_2586;method_10996()V
named cancelRemoval
Lnet/minecraft/block/entity/BlockEntity;cancelRemoval()V
-
onSyncedBlockEvent
public boolean onSyncedBlockEvent(int type, int data)- Mappings:
Namespace Name Mixin selector official a_
Lcfr;a_(II)Z
intermediary method_11004
Lnet/minecraft/class_2586;method_11004(II)Z
named onSyncedBlockEvent
Lnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Z
-
populateCrashReport
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a(Lm;)V
intermediary method_11003
Lnet/minecraft/class_2586;method_11003(Lnet/minecraft/class_129;)V
named populateCrashReport
Lnet/minecraft/block/entity/BlockEntity;populateCrashReport(Lnet/minecraft/util/crash/CrashReportSection;)V
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()- Mappings:
Namespace Name Mixin selector official r
Lcfr;r()Z
intermediary method_11011
Lnet/minecraft/class_2586;method_11011()Z
named copyItemDataRequiresOperator
Lnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
-
getType
- Mappings:
Namespace Name Mixin selector official s
Lcfr;s()Lcft;
intermediary method_11017
Lnet/minecraft/class_2586;method_11017()Lnet/minecraft/class_2591;
named getType
Lnet/minecraft/block/entity/BlockEntity;getType()Lnet/minecraft/block/entity/BlockEntityType;
-
setCachedState
Deprecated.- Mappings:
Namespace Name Mixin selector official b
Lcfr;b(Lcht;)V
intermediary method_31664
Lnet/minecraft/class_2586;method_31664(Lnet/minecraft/class_2680;)V
named setCachedState
Lnet/minecraft/block/entity/BlockEntity;setCachedState(Lnet/minecraft/block/BlockState;)V
-