net.minecraft.world.level.block.entity

public abstract class BlockEntity

dua
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.class_2586
net.minecraft.block.entity.BlockEntity
net.minecraft.world.level.block.entity.TileEntity

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
d
LOGGER
field_11868
LOGGER
private final BlockEntityType<?>
e
type
field_11864
type
protected Level
n
level
field_11863
world
protected final BlockPos
o
worldPosition
field_11867
pos
protected boolean
p
remove
field_11865
removed
private BlockState
f
blockState
field_11866
cachedState
private DataComponentMap
g
components
field_50172
components

Constructor summary

ModifierConstructor
public (BlockEntityType<?> type, BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
private void
a(dwy arg0)
validateBlockState(BlockState arg0)
method_61175(class_2680 arg0)
validateSupports(BlockState state)
public boolean
b(dwy arg0)
isValidBlockState(BlockState arg0)
method_61176(class_2680 arg0)
supports(BlockState state)
public static BlockPos
b(tq arg0)
getPosFromTag(CompoundTag arg0)
method_38239(class_2487 arg0)
posFromNbt(NbtCompound nbt)
public Level
i()
getLevel()
method_10997()
getWorld()
public void
a(dgj arg0)
setLevel(Level arg0)
method_31662(class_1937 arg0)
setWorld(World world)
public boolean
l()
hasLevel()
method_11002()
hasWorld()
protected void
a(tq arg0, jt$a arg1)
loadAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11014(class_2487 arg0, class_7225$class_7874 arg1)
readNbt(NbtCompound nbt, RegistryWrapper$WrapperLookup registries)
public final void
c(tq arg0, jt$a arg1)
loadWithComponents(CompoundTag arg0, HolderLookup$Provider arg1)
method_58690(class_2487 arg0, class_7225$class_7874 arg1)
read(NbtCompound nbt, RegistryWrapper$WrapperLookup registries)
public final void
d(tq arg0, jt$a arg1)
loadCustomOnly(CompoundTag arg0, HolderLookup$Provider arg1)
method_58691(class_2487 arg0, class_7225$class_7874 arg1)
readComponentlessNbt(NbtCompound nbt, RegistryWrapper$WrapperLookup registries)
protected void
b(tq arg0, jt$a arg1)
saveAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11007(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound nbt, RegistryWrapper$WrapperLookup registries)
public final CompoundTag
b(jt$a arg0)
saveWithFullMetadata(HolderLookup$Provider arg0)
method_38242(class_7225$class_7874 arg0)
createNbtWithIdentifyingData(RegistryWrapper$WrapperLookup registries)
public final CompoundTag
c(jt$a arg0)
saveWithId(HolderLookup$Provider arg0)
method_38243(class_7225$class_7874 arg0)
createNbtWithId(RegistryWrapper$WrapperLookup registries)
public final CompoundTag
d(jt$a arg0)
saveWithoutMetadata(HolderLookup$Provider arg0)
method_38244(class_7225$class_7874 arg0)
createNbt(RegistryWrapper$WrapperLookup registries)
public final CompoundTag
e(jt$a arg0)
saveCustomOnly(HolderLookup$Provider arg0)
method_58692(class_7225$class_7874 arg0)
createComponentlessNbt(RegistryWrapper$WrapperLookup registries)
public final CompoundTag
f(jt$a arg0)
saveCustomAndMetadata(HolderLookup$Provider arg0)
method_59535(class_7225$class_7874 arg0)
createComponentlessNbtWithIdentifyingData(RegistryWrapper$WrapperLookup registries)
private void
c(tq arg0)
saveId(CompoundTag arg0)
method_38241(class_2487 arg0)
writeIdToNbt(NbtCompound nbt)
public static void
a(tq arg0, duc<?> arg1)
addEntityType(CompoundTag arg0, BlockEntityType<?> arg1)
method_38238(class_2487 arg0, class_2591<?> arg1)
writeIdToNbt(NbtCompound nbt, BlockEntityType<?> type)
private void
d(tq arg0)
saveMetadata(CompoundTag arg0)
method_10999(class_2487 arg0)
writeIdentifyingData(NbtCompound nbt)
public static BlockEntity
a(ji arg0, dwy arg1, tq arg2, jt$a arg3)
loadStatic(BlockPos arg0, BlockState arg1, CompoundTag arg2, HolderLookup$Provider arg3)
method_11005(class_2338 arg0, class_2680 arg1, class_2487 arg2, class_7225$class_7874 arg3)
createFromNbt(BlockPos pos, BlockState state, NbtCompound nbt, RegistryWrapper$WrapperLookup registries)
public void
e()
setChanged()
method_5431()
markDirty()
protected static void
a(dgj arg0, ji arg1, dwy arg2)
setChanged(Level arg0, BlockPos arg1, BlockState arg2)
method_31663(class_1937 arg0, class_2338 arg1, class_2680 arg2)
markDirty(World world, BlockPos pos, BlockState state)
public BlockPos
aA_()
getBlockPos()
method_11016()
getPos()
public BlockState
m()
getBlockState()
method_11010()
getCachedState()
public Packet<ClientGamePacketListener>
ax_()
getUpdatePacket()
method_38235()
toUpdatePacket()
public CompoundTag
a(jt$a arg0)
getUpdateTag(HolderLookup$Provider arg0)
method_16887(class_7225$class_7874 arg0)
toInitialChunkDataNbt(RegistryWrapper$WrapperLookup registries)
public boolean
n()
isRemoved()
method_11015()
isRemoved()
public void
av_()
setRemoved()
method_11012()
markRemoved()
public void
o()
clearRemoved()
method_10996()
cancelRemoval()
public boolean
a_(int arg0, int arg1)
triggerEvent(int arg0, int arg1)
method_11004(int arg0, int arg1)
onSyncedBlockEvent(int type, int data)
public void
a(p arg0)
fillCrashReportCategory(CrashReportCategory arg0)
method_11003(class_129 arg0)
populateCrashReport(CrashReportSection crashReportSection)
private String
k()
getNameForReporting()
method_61177()
getNameForReport()
public BlockEntityType<?>
p()
getType()
method_11017()
getType()
public void
c(dwy arg0)
setBlockState(BlockState arg0)
method_31664(class_2680 arg0)
setCachedState(BlockState state)
protected void
a(dua$b arg0)
applyImplicitComponents(BlockEntity$DataComponentInput arg0)
method_57568(class_2586$class_9473 arg0)
readComponents(BlockEntity$ComponentsAccess components)
public final void
a(cwq arg0)
applyComponentsFromItemStack(ItemStack arg0)
method_58683(class_1799 arg0)
readComponents(ItemStack stack)
public final void
a(kr arg0, ks arg1)
applyComponents(DataComponentMap arg0, DataComponentPatch arg1)
method_58685(class_9323 arg0, class_9326 arg1)
readComponents(ComponentMap defaultComponents, ComponentChanges components)
protected void
a(kr$a arg0)
collectImplicitComponents(DataComponentMap$Builder arg0)
method_57567(class_9323$class_9324 arg0)
addComponents(ComponentMap$Builder builder)
public void
a(tq arg0)
removeComponentsFromTag(CompoundTag arg0)
method_57569(class_2487 arg0)
removeFromCopiedStackNbt(NbtCompound nbt)
public final DataComponentMap
q()
collectComponents()
method_57590()
createComponentMap()
public DataComponentMap
r()
components()
method_58693()
getComponents()
public void
a(kr arg0)
setComponents(DataComponentMap arg0)
method_58684(class_9323 arg0)
setComponents(ComponentMap components)
public static Component
a(String arg0, jt$a arg1)
parseCustomNameSafe(String arg0, HolderLookup$Provider arg1)
method_59894(String arg0, class_7225$class_7874 arg1)
tryParseCustomName(String json, RegistryWrapper$WrapperLookup registries)