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
- Mappings:
Namespace Name official cip
intermediary net/minecraft/class_2586
named net/minecraft/block/entity/BlockEntity
-
Field Summary
Modifier and TypeFieldDescriptionprivate BlockState
private static Logger
protected BlockPos
protected boolean
private BlockEntityType<?>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
static @Nullable BlockEntity
createFromNbt(BlockPos pos, BlockState state, NbtCompound nbt)
getPos()
getType()
getWorld()
boolean
hasWorld()
boolean
void
protected static void
markDirty(World world, BlockPos pos, BlockState state)
void
boolean
onSyncedBlockEvent(int type, int data)
void
populateCrashReport(CrashReportSection crashReportSection)
void
readNbt(NbtCompound nbt)
void
setCachedState(BlockState state)
Deprecated.void
private NbtCompound
writeNbt(NbtCompound nbt)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Lcip;b: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 c
Lcip;c:Lcir;
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 n
Lcip;n:Lbwp;
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 o
Lcip;o:Lgg;
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 p
Lcip;p: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 d
Lcip;d:Lcks;
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>
Lcip;<init>(Lcir;Lgg;Lcks;)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 k
Lcip;k()Lbwp;
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
Lcip;a(Lbwp;)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 l
Lcip;l()Z
intermediary method_11002
Lnet/minecraft/class_2586;method_11002()Z
named hasWorld
Lnet/minecraft/block/entity/BlockEntity;hasWorld()Z
-
readNbt
- Mappings:
Namespace Name Mixin selector official a
Lcip;a(Lna;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named readNbt
Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeNbt
- Mappings:
Namespace Name Mixin selector official b
Lcip;b(Lna;)Lna;
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
-
writeIdentifyingData
- Mappings:
Namespace Name Mixin selector official c
Lcip;c(Lna;)Lna;
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/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
-
createFromNbt
@Nullable public static @Nullable BlockEntity createFromNbt(BlockPos pos, BlockState state, NbtCompound nbt)- Mappings:
Namespace Name Mixin selector official a
Lcip;a(Lgg;Lcks;Lna;)Lcip;
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 createFromNbt
Lnet/minecraft/block/entity/BlockEntity;createFromNbt(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/block/entity/BlockEntity;
-
markDirty
public void markDirty()- Mappings:
Namespace Name Mixin selector official e
Lcip;e()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
Lcip;a(Lbwp;Lgg;Lcks;)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
-
getPos
- Mappings:
Namespace Name Mixin selector official m
Lcip;m()Lgg;
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 n
Lcip;n()Lcks;
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 Y_
Lcip;Y_()Lpy;
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;
-
toInitialChunkDataNbt
- Mappings:
Namespace Name Mixin selector official Z_
Lcip;Z_()Lna;
intermediary method_16887
Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;
named toInitialChunkDataNbt
Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt()Lnet/minecraft/nbt/NbtCompound;
-
isRemoved
public boolean isRemoved()- Mappings:
Namespace Name Mixin selector official o
Lcip;o()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 aa_
Lcip;aa_()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 p
Lcip;p()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_
Lcip;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
Lcip;a(Lr;)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 q
Lcip;q()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 r
Lcip;r()Lcir;
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
Lcip;b(Lcks;)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
-