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 cgmintermediary net/minecraft/class_2586named net/minecraft/block/entity/BlockEntity
-
Field Summary
Fields Modifier and Type Field Description private BlockStatecachedStateprivate static LoggerLOGGERprotected BlockPosposprotected booleanremovedprivate BlockEntityType<?>typeprotected @Nullable Worldworld -
Constructor Summary
Constructors Constructor Description BlockEntity(BlockEntityType<?> type, BlockPos pos, BlockState state) -
Method Summary
Modifier and Type Method Description voidcancelRemoval()booleancopyItemDataRequiresOperator()static @Nullable BlockEntitycreateFromNbt(BlockPos pos, BlockState state, CompoundTag tag)BlockStategetCachedState()BlockPosgetPos()BlockEntityType<?>getType()@Nullable WorldgetWorld()booleanhasWorld()booleanisRemoved()voidmarkDirty()protected static voidmarkDirty(World world, BlockPos pos, BlockState state)voidmarkRemoved()booleanonSyncedBlockEvent(int type, int data)voidpopulateCrashReport(CrashReportSection crashReportSection)voidreadNbt(CompoundTag tag)voidsetCachedState(BlockState state)Deprecated.voidsetWorld(World world)CompoundTagtoInitialChunkDataNbt()@Nullable BlockEntityUpdateS2CPackettoUpdatePacket()private CompoundTagwriteIdentifyingData(CompoundTag tag)CompoundTagwriteNbt(CompoundTag tag)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLcgm;a:Lorg/apache/logging/log4j/Logger;intermediary field_11868Lnet/minecraft/class_2586;field_11868:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/block/entity/BlockEntity;LOGGER:Lorg/apache/logging/log4j/Logger;
-
type
- Mappings:
Namespace Name Mixin selector official bLcgm;b:Lcgo;intermediary field_11864Lnet/minecraft/class_2586;field_11864:Lnet/minecraft/class_2591;named typeLnet/minecraft/block/entity/BlockEntity;type:Lnet/minecraft/block/entity/BlockEntityType;
-
world
- Mappings:
Namespace Name Mixin selector official dLcgm;d:Lbuq;intermediary field_11863Lnet/minecraft/class_2586;field_11863:Lnet/minecraft/class_1937;named worldLnet/minecraft/block/entity/BlockEntity;world:Lnet/minecraft/world/World;
-
pos
- Mappings:
Namespace Name Mixin selector official eLcgm;e:Lfx;intermediary field_11867Lnet/minecraft/class_2586;field_11867:Lnet/minecraft/class_2338;named posLnet/minecraft/block/entity/BlockEntity;pos:Lnet/minecraft/util/math/BlockPos;
-
removed
protected boolean removed- Mappings:
Namespace Name Mixin selector official fLcgm;f:Zintermediary field_11865Lnet/minecraft/class_2586;field_11865:Znamed removedLnet/minecraft/block/entity/BlockEntity;removed:Z
-
cachedState
- Mappings:
Namespace Name Mixin selector official cLcgm;c:Lcio;intermediary field_11866Lnet/minecraft/class_2586;field_11866:Lnet/minecraft/class_2680;named cachedStateLnet/minecraft/block/entity/BlockEntity;cachedState:Lnet/minecraft/block/BlockState;
-
-
Constructor Details
-
BlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcgm;<init>(Lcgo;Lfx;Lcio;)Vintermediary <init>Lnet/minecraft/class_2586;<init>(Lnet/minecraft/class_2591;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <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 kLcgm;k()Lbuq;intermediary method_10997Lnet/minecraft/class_2586;method_10997()Lnet/minecraft/class_1937;named getWorldLnet/minecraft/block/entity/BlockEntity;getWorld()Lnet/minecraft/world/World;
-
setWorld
- Mappings:
Namespace Name Mixin selector official aLcgm;a(Lbuq;)Vintermediary method_31662Lnet/minecraft/class_2586;method_31662(Lnet/minecraft/class_1937;)Vnamed setWorldLnet/minecraft/block/entity/BlockEntity;setWorld(Lnet/minecraft/world/World;)V
-
hasWorld
public boolean hasWorld()- Mappings:
Namespace Name Mixin selector official lLcgm;l()Zintermediary method_11002Lnet/minecraft/class_2586;method_11002()Znamed hasWorldLnet/minecraft/block/entity/BlockEntity;hasWorld()Z
-
readNbt
- Mappings:
Namespace Name Mixin selector official aLcgm;a(Lmr;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
writeNbt
- Mappings:
Namespace Name Mixin selector official bLcgm;b(Lmr;)Lmr;intermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
writeIdentifyingData
- Mappings:
Namespace Name Mixin selector official cLcgm;c(Lmr;)Lmr;intermediary method_10999Lnet/minecraft/class_2586;method_10999(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named writeIdentifyingDataLnet/minecraft/block/entity/BlockEntity;writeIdentifyingData(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
createFromNbt
@Nullable public static @Nullable BlockEntity createFromNbt(BlockPos pos, BlockState state, CompoundTag tag)- Mappings:
Namespace Name Mixin selector official aLcgm;a(Lfx;Lcio;Lmr;)Lcgm;intermediary method_11005Lnet/minecraft/class_2586;method_11005(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2586;named createFromNbtLnet/minecraft/block/entity/BlockEntity;createFromNbt(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_Lcgm;Y_()Vintermediary method_5431Lnet/minecraft/class_2586;method_5431()Vnamed markDirtyLnet/minecraft/block/entity/BlockEntity;markDirty()V
-
markDirty
- Mappings:
Namespace Name Mixin selector official aLcgm;a(Lbuq;Lfx;Lcio;)Vintermediary method_31663Lnet/minecraft/class_2586;method_31663(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed markDirtyLnet/minecraft/block/entity/BlockEntity;markDirty(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
getPos
- Mappings:
Namespace Name Mixin selector official mLcgm;m()Lfx;intermediary method_11016Lnet/minecraft/class_2586;method_11016()Lnet/minecraft/class_2338;named getPosLnet/minecraft/block/entity/BlockEntity;getPos()Lnet/minecraft/util/math/BlockPos;
-
getCachedState
- Mappings:
Namespace Name Mixin selector official nLcgm;n()Lcio;intermediary method_11010Lnet/minecraft/class_2586;method_11010()Lnet/minecraft/class_2680;named getCachedStateLnet/minecraft/block/entity/BlockEntity;getCachedState()Lnet/minecraft/block/BlockState;
-
toUpdatePacket
- Mappings:
Namespace Name Mixin selector official aLcgm;a()Lpp;intermediary method_16886Lnet/minecraft/class_2586;method_16886()Lnet/minecraft/class_2622;named toUpdatePacketLnet/minecraft/block/entity/BlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
toInitialChunkDataNbt
- Mappings:
Namespace Name Mixin selector official bLcgm;b()Lmr;intermediary method_16887Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;named toInitialChunkDataNbtLnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt()Lnet/minecraft/nbt/CompoundTag;
-
isRemoved
public boolean isRemoved()- Mappings:
Namespace Name Mixin selector official oLcgm;o()Zintermediary method_11015Lnet/minecraft/class_2586;method_11015()Znamed isRemovedLnet/minecraft/block/entity/BlockEntity;isRemoved()Z
-
markRemoved
public void markRemoved()- Mappings:
Namespace Name Mixin selector official ap_Lcgm;ap_()Vintermediary method_11012Lnet/minecraft/class_2586;method_11012()Vnamed markRemovedLnet/minecraft/block/entity/BlockEntity;markRemoved()V
-
cancelRemoval
public void cancelRemoval()- Mappings:
Namespace Name Mixin selector official pLcgm;p()Vintermediary method_10996Lnet/minecraft/class_2586;method_10996()Vnamed cancelRemovalLnet/minecraft/block/entity/BlockEntity;cancelRemoval()V
-
onSyncedBlockEvent
public boolean onSyncedBlockEvent(int type, int data)- Mappings:
Namespace Name Mixin selector official a_Lcgm;a_(II)Zintermediary method_11004Lnet/minecraft/class_2586;method_11004(II)Znamed onSyncedBlockEventLnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Z
-
populateCrashReport
- Mappings:
Namespace Name Mixin selector official aLcgm;a(Lm;)Vintermediary method_11003Lnet/minecraft/class_2586;method_11003(Lnet/minecraft/class_129;)Vnamed populateCrashReportLnet/minecraft/block/entity/BlockEntity;populateCrashReport(Lnet/minecraft/util/crash/CrashReportSection;)V
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()- Mappings:
Namespace Name Mixin selector official qLcgm;q()Zintermediary method_11011Lnet/minecraft/class_2586;method_11011()Znamed copyItemDataRequiresOperatorLnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
-
getType
- Mappings:
Namespace Name Mixin selector official rLcgm;r()Lcgo;intermediary method_11017Lnet/minecraft/class_2586;method_11017()Lnet/minecraft/class_2591;named getTypeLnet/minecraft/block/entity/BlockEntity;getType()Lnet/minecraft/block/entity/BlockEntityType;
-
setCachedState
Deprecated.- Mappings:
Namespace Name Mixin selector official bLcgm;b(Lcio;)Vintermediary method_31664Lnet/minecraft/class_2586;method_31664(Lnet/minecraft/class_2680;)Vnamed setCachedStateLnet/minecraft/block/entity/BlockEntity;setCachedState(Lnet/minecraft/block/BlockState;)V
-