net.minecraft.block.entity

public abstract class BlockEntity

implements DebugTrackable

egg
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.class_2586
net.minecraft.block.entity.BlockEntity
net.minecraft.unmapped.C_kvegafmh
net.minecraft.block.entity.BlockEntity
net.minecraft.src.C_1991_

Field summary

Modifier and TypeField
private static final com.mojang.serialization.Codec<BlockEntityType<?>>
d
TYPE_CODEC
field_57768
TYPE_CODEC
f_bubgxjhh
CODEC
f_380759_
private static final org.slf4j.Logger
e
LOGGER
field_11868
LOGGER
f_muneaeoa
LOGGER
f_58854_
private final BlockEntityType<?>
f
type
field_11864
type
f_ryoueidw
type
f_58855_
protected World
n
level
field_11863
world
f_fsrkvtwf
world
f_58857_
protected final BlockPos
o
worldPosition
field_11867
pos
f_vmexpbns
pos
f_58858_
protected boolean
p
remove
field_11865
removed
f_tkrvwfln
removed
f_58859_
private BlockState
g
blockState
field_11866
cachedState
f_ebvcvspz
cachedState
f_58856_
private ComponentMap
h
components
field_50172
components
f_acpxxkyo
components
f_314183_

Constructor summary

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

Method summary

Modifier and TypeMethod
private void
a(ejm arg0)
validateBlockState(BlockState arg0)
method_61175(class_2680 arg0)
validateSupports(BlockState state)
m_aezsotnt(C_txtbiemp arg0)
validate(BlockState state)
m_345529_(C_2064_ arg0)
public boolean
b(ejm arg0)
isValidBlockState(BlockState arg0)
method_61176(class_2680 arg0)
supports(BlockState state)
m_ntnawmxi(C_txtbiemp arg0)
supportsState(BlockState state)
m_345532_(C_2064_ arg0)
public static BlockPos
a(dqv o, up o)
getPosFromTag(ChunkPos arg0, CompoundTag arg1)
method_38239(class_1923 arg0, class_2487 arg1)
posFromNbt(ChunkPos chunkPos, NbtCompound nbt)
m_culdahst(C_ynrszrtu arg0, C_hhlwcnih arg1)
readBlockPosFromNbt(ChunkPos pos, NbtCompound nbt)
m_187472_(C_1560_ p_396083_, C_4917_ p_187473_)
public World
j()
getLevel()
method_10997()
getWorld()
m_rtxjwbev()
getWorld()
m_58904_()
public void
a(drq arg0)
setLevel(Level arg0)
method_31662(class_1937 arg0)
setWorld(World world)
m_kdzukdvh(C_cdctfzbn arg0)
setWorld(World world)
m_142339_(C_1596_ arg0)
public boolean
n()
hasLevel()
method_11002()
hasWorld()
m_pnogyfzc()
hasWorld()
m_58898_()
protected void
a(fip arg0)
loadAdditional(ValueInput arg0)
method_11014(class_11368 arg0)
readData(ReadView view)
m_trzmaydr(C_djkzhngg arg0)
readImpl(DataReader reader)
m_318667_(C_398549_ arg0)
public final void
b(fip arg0)
loadWithComponents(ValueInput arg0)
method_58690(class_11368 arg0)
read(ReadView view)
m_rjyhuhsi(C_djkzhngg arg0)
read(DataReader reader)
m_320998_(C_398549_ arg0)
public final void
c(fip arg0)
loadCustomOnly(ValueInput arg0)
method_58691(class_11368 arg0)
readComponentlessData(ReadView view)
m_gmqocbcr(C_djkzhngg arg0)
readComponentless(DataReader reader)
m_324273_(C_398549_ arg0)
protected void
a(fir arg0)
saveAdditional(ValueOutput arg0)
method_11007(class_11372 arg0)
writeData(WriteView view)
m_qopnimsa(C_kespdwpv arg0)
writeImpl(DataWriter writer)
m_183515_(C_398537_ arg0)
public final NbtCompound
b(jm$a arg0)
saveWithFullMetadata(HolderLookup$Provider arg0)
method_38242(class_7225$class_7874 arg0)
createNbtWithIdentifyingData(RegistryWrapper$WrapperLookup registries)
m_smosbmig(C_vtbxyypo$C_etmlgbig arg0)
createNbtWithMetadata(HolderLookup$Provider lookupProvider)
m_187480_(C_213466_$C_254607_ arg0)
public void
c(fir arg0)
saveWithFullMetadata(ValueOutput arg0)
method_71399(class_11372 arg0)
writeFullData(WriteView view)
m_pbehiuuh(C_kespdwpv arg0)
writeWithMetadata(DataWriter writer)
m_402496_(C_398537_ arg0)
public void
d(fir arg0)
saveWithId(ValueOutput arg0)
method_38243(class_11372 arg0)
writeDataWithId(WriteView view)
m_dzrbmfhv(C_kespdwpv arg0)
writeWithId(DataWriter writer)
m_187481_(C_398537_ arg0)
public final NbtCompound
c(jm$a arg0)
saveWithoutMetadata(HolderLookup$Provider arg0)
method_38244(class_7225$class_7874 arg0)
createNbt(RegistryWrapper$WrapperLookup registries)
m_pbfxxkgk(C_vtbxyypo$C_etmlgbig arg0)
toNbt(HolderLookup$Provider lookupProvider)
m_187482_(C_213466_$C_254607_ arg0)
public void
e(fir arg0)
saveWithoutMetadata(ValueOutput arg0)
method_71400(class_11372 arg0)
writeDataWithoutId(WriteView data)
m_ubmfseyf(C_kespdwpv arg0)
write(DataWriter writer)
m_404344_(C_398537_ arg0)
public final NbtCompound
d(jm$a arg0)
saveCustomOnly(HolderLookup$Provider arg0)
method_58692(class_7225$class_7874 arg0)
createComponentlessNbt(RegistryWrapper$WrapperLookup registries)
m_jywurcwf(C_vtbxyypo$C_etmlgbig arg0)
createNbtComponentless(HolderLookup$Provider lookupProvider)
m_320696_(C_213466_$C_254607_ arg0)
public void
f(fir arg0)
saveCustomOnly(ValueOutput arg0)
method_71401(class_11372 arg0)
writeComponentlessData(WriteView view)
m_bolwexnf(C_kespdwpv arg0)
writeComponentless(DataWriter writer)
m_404554_(C_398537_ arg0)
private void
g(fir arg0)
saveId(ValueOutput arg0)
method_38241(class_11372 arg0)
writeId(WriteView view)
m_auxezlat(C_kespdwpv arg0)
writeId(DataWriter writer)
m_187474_(C_398537_ arg0)
public static void
a(fir o, egi<?> o)
addEntityType(ValueOutput arg0, BlockEntityType<?> arg1)
method_38238(class_11372 arg0, class_2591<?> arg1)
writeId(WriteView view, BlockEntityType<?> type)
m_zasadoxf(C_kespdwpv arg0, C_wgqvodus<?> arg1)
writeId(DataWriter writer, BlockEntityType<?> type)
m_187468_(C_398537_ p_409334_, C_1992_<?> p_187470_)
private void
h(fir arg0)
saveMetadata(ValueOutput arg0)
method_10999(class_11372 arg0)
writeIdentifyingData(WriteView view)
m_jcglyghm(C_kespdwpv arg0)
writeIdAndPos(DataWriter writer)
m_187478_(C_398537_ arg0)
public static BlockEntity
a(ja o, ejm o, up o, jm$a o)
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)
m_idcywgkm(C_hynzadkk arg0, C_txtbiemp arg1, C_hhlwcnih arg2, C_vtbxyypo$C_etmlgbig arg3)
createFromNbt(BlockPos pos, BlockState state, NbtCompound nbt, HolderLookup$Provider lookupProvider)
m_155241_(C_4675_ p_155242_, C_2064_ p_155243_, C_4917_ p_155244_, C_213466_$C_254607_ p_336084_)
public void
e()
setChanged()
method_5431()
markDirty()
m_phlhitmt()
markDirty()
m_6596_()
protected static void
a(drq o, ja o, ejm o)
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)
m_cjlndzcv(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2)
markDirty(World world, BlockPos pos, BlockState state)
m_155232_(C_1596_ p_155233_, C_4675_ p_155234_, C_2064_ p_155235_)
public BlockPos
aD_()
getBlockPos()
method_11016()
getPos()
m_qihknhoq()
getPos()
m_58899_()
public BlockState
o()
getBlockState()
method_11010()
getCachedState()
m_zqrrwulc()
getCachedState()
m_58900_()
public Packet<ClientPlayPacketListener>
ax_()
getUpdatePacket()
method_38235()
toUpdatePacket()
m_kydjlael()
toUpdatePacket()
m_58483_()
public NbtCompound
a(jm$a arg0)
getUpdateTag(HolderLookup$Provider arg0)
method_16887(class_7225$class_7874 arg0)
toInitialChunkDataNbt(RegistryWrapper$WrapperLookup registries)
m_escrnqip(C_vtbxyypo$C_etmlgbig arg0)
toSyncedNbt(HolderLookup$Provider lookupProvider)
m_5995_(C_213466_$C_254607_ arg0)
public boolean
p()
isRemoved()
method_11015()
isRemoved()
m_jutqxnar()
isRemoved()
m_58901_()
public void
ay_()
setRemoved()
method_11012()
markRemoved()
m_ftinwujz()
markRemoved()
m_7651_()
public void
q()
clearRemoved()
method_10996()
cancelRemoval()
m_knsllsrv()
cancelRemoval()
m_6339_()
public void
a(ja o, ejm arg1)
preRemoveSideEffects(BlockPos arg0, BlockState arg1)
method_66473(class_2338 arg0, class_2680 arg1)
onBlockReplaced(BlockPos pos, BlockState oldState)
m_zbfmojnu(C_hynzadkk arg0, C_txtbiemp arg1)
onReplaced(BlockPos pos, BlockState state)
m_384369_(C_4675_ p_395805_, C_2064_ arg1)
public boolean
a_(int o, int arg1)
triggerEvent(int arg0, int arg1)
method_11004(int arg0, int arg1)
onSyncedBlockEvent(int type, int data)
m_qrmwzmws(int arg0, int arg1)
onSyncedBlockEvent(int type, int data)
m_7531_(int p_58890_, int arg1)
public void
a(q arg0)
fillCrashReportCategory(CrashReportCategory arg0)
method_11003(class_129 arg0)
populateCrashReport(CrashReportSection crashReportSection)
m_yymkkcjv(C_qympisds arg0)
populateCrashReport(CrashReportSection crashReportSection)
m_58886_(C_4909_ arg0)
public String
r()
getNameForReporting()
method_61177()
getNameForReport()
m_bczwkfko()
getReportableName()
m_345537_()
public BlockEntityType<?>
s()
getType()
method_11017()
getType()
m_zgvlsqwh()
getType()
m_58903_()
public void
c(ejm arg0)
setBlockState(BlockState arg0)
method_31664(class_2680 arg0)
setCachedState(BlockState state)
m_jszkmdfp(C_txtbiemp arg0)
setCachedState(BlockState state)
m_155250_(C_2064_ arg0)
protected void
a(kk arg0)
applyImplicitComponents(DataComponentGetter arg0)
method_57568(class_9473 arg0)
readComponents(ComponentsAccess components)
m_cckjpvhm(C_hmcnusfu arg0)
readComponents(ComponentAccess access)
m_318741_(C_379187_ arg0)
public final void
a(dhp arg0)
applyComponentsFromItemStack(ItemStack arg0)
method_58683(class_1799 arg0)
readComponents(ItemStack stack)
m_rloeylgt(C_sddaxwyk arg0)
applyComponents(ItemStack stack)
m_322533_(C_1391_ arg0)
public final void
a(km o, kn arg1)
applyComponents(DataComponentMap arg0, DataComponentPatch arg1)
method_58685(class_9323 arg0, class_9326 arg1)
readComponents(ComponentMap defaultComponents, ComponentChanges components)
m_kdfbpbpy(C_kouhnfig arg0, C_jqyoylib arg1)
applyComponents(DataComponentMap baseComponents, DataComponentPatch patch)
m_322221_(C_313470_ p_331646_, C_313461_ arg1)
protected void
a(km$a arg0)
collectImplicitComponents(DataComponentMap$Builder arg0)
method_57567(class_9323$class_9324 arg0)
addComponents(ComponentMap$Builder builder)
m_apmtvpji(C_kouhnfig$C_vfzyoahz arg0)
addComponents(DataComponentMap$Builder builder)
m_318837_(C_313470_$C_313535_ arg0)
public void
b(fir arg0)
removeComponentsFromTag(ValueOutput arg0)
method_57569(class_11372 arg0)
removeFromCopiedStackData(WriteView view)
m_pcgjfrqh(C_kespdwpv arg0)
removeComponentData(DataWriter writer)
m_318942_(C_398537_ arg0)
public final ComponentMap
t()
collectComponents()
method_57590()
createComponentMap()
m_jhcvwprs()
copyComponents()
m_321843_()
public ComponentMap
u()
components()
method_58693()
getComponents()
m_efaugnfj()
getComponents()
m_324356_()
public void
a(km arg0)
setComponents(DataComponentMap arg0)
method_58684(class_9323 arg0)
setComponents(ComponentMap components)
m_zevtxnnz(C_kouhnfig arg0)
setComponents(DataComponentMap components)
m_323608_(C_313470_ arg0)
public static Text
a(fip o, String o)
parseCustomNameSafe(ValueInput arg0, String arg1)
method_59894(class_11368 arg0, String arg1)
tryParseCustomName(ReadView view, String key)
m_ijpcosft(C_djkzhngg arg0, String arg1)
tryParseCustomName(DataReader reader, String key)
m_336414_(C_398549_ p_408442_, String p_410488_)
public ErrorReporter$Context
v()
problemPath()
method_71402()
getReporterContext()
m_tpdtljex()
createErrorContext()
m_401685_()
public void
a(awx o, bvv$a arg1)
registerDebugValues(ServerLevel arg0, DebugValueSource$Registration arg1)
method_74589(class_3218 arg0, class_12023$class_12024 arg1)
registerTracking(ServerWorld arg0, DebugTrackable$Tracker arg1)
m_arqtvkop(C_bdwnwhiu arg0, C_fqdfbjtb$C_hjjrcldp arg1)
m_arqtvkop(ServerWorld arg0, C_fqdfbjtb$C_hjjrcldp arg1)
m_402531_(C_12_ p_424498_, C_411330_$C_411147_ arg1)