net.minecraft.world.level.block.entity

public abstract class BlockEntity

dux
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
o
level
field_11863
world
protected final BlockPos
p
worldPosition
field_11867
pos
protected boolean
q
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(dxv arg0)
validateBlockState(BlockState arg0)
method_61175(class_2680 arg0)
validateSupports(BlockState state)
public boolean
b(dxv arg0)
isValidBlockState(BlockState arg0)
method_61176(class_2680 arg0)
supports(BlockState state)
public static BlockPos
b(ux arg0)
getPosFromTag(CompoundTag arg0)
method_38239(class_2487 arg0)
posFromNbt(NbtCompound nbt)
public Level
i()
getLevel()
method_10997()
getWorld()
public void
a(dhi arg0)
setLevel(Level arg0)
method_31662(class_1937 arg0)
setWorld(World world)
public boolean
l()
hasLevel()
method_11002()
hasWorld()
protected void
a(ux arg0, js$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(ux arg0, js$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(ux arg0, js$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(ux arg0, js$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(js$a arg0)
saveWithFullMetadata(HolderLookup$Provider arg0)
method_38242(class_7225$class_7874 arg0)
createNbtWithIdentifyingData(RegistryWrapper$WrapperLookup registries)
public final CompoundTag
c(js$a arg0)
saveWithId(HolderLookup$Provider arg0)
method_38243(class_7225$class_7874 arg0)
createNbtWithId(RegistryWrapper$WrapperLookup registries)
public final CompoundTag
d(js$a arg0)
saveWithoutMetadata(HolderLookup$Provider arg0)
method_38244(class_7225$class_7874 arg0)
createNbt(RegistryWrapper$WrapperLookup registries)
public final CompoundTag
e(js$a arg0)
saveCustomOnly(HolderLookup$Provider arg0)
method_58692(class_7225$class_7874 arg0)
createComponentlessNbt(RegistryWrapper$WrapperLookup registries)
public final CompoundTag
f(js$a arg0)
saveCustomAndMetadata(HolderLookup$Provider arg0)
method_59535(class_7225$class_7874 arg0)
createComponentlessNbtWithIdentifyingData(RegistryWrapper$WrapperLookup registries)
private void
c(ux arg0)
saveId(CompoundTag arg0)
method_38241(class_2487 arg0)
writeIdToNbt(NbtCompound nbt)
public static void
a(ux arg0, duz<?> arg1)
addEntityType(CompoundTag arg0, BlockEntityType<?> arg1)
method_38238(class_2487 arg0, class_2591<?> arg1)
writeIdToNbt(NbtCompound nbt, BlockEntityType<?> type)
public void
a(cxp arg0, js$a arg1)
saveToItem(ItemStack arg0, HolderLookup$Provider arg1)
method_38240(class_1799 arg0, class_7225$class_7874 arg1)
setStackNbt(ItemStack stack, RegistryWrapper$WrapperLookup registries)
private void
d(ux arg0)
saveMetadata(CompoundTag arg0)
method_10999(class_2487 arg0)
writeIdentifyingData(NbtCompound nbt)
public static BlockEntity
a(jh arg0, dxv arg1, ux arg2, js$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(dhi arg0, jh arg1, dxv 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
aB_()
getBlockPos()
method_11016()
getPos()
public BlockState
m()
getBlockState()
method_11010()
getCachedState()
public Packet<ClientGamePacketListener>
ay_()
getUpdatePacket()
method_38235()
toUpdatePacket()
public CompoundTag
a(js$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
aw_()
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 boolean
p()
onlyOpCanSetNbt()
method_11011()
copyItemDataRequiresOperator()
public BlockEntityType<?>
q()
getType()
method_11017()
getType()
public void
c(dxv arg0)
setBlockState(BlockState arg0)
method_31664(class_2680 arg0)
setCachedState(BlockState state)
protected void
a(dux$b arg0)
applyImplicitComponents(BlockEntity$DataComponentInput arg0)
method_57568(class_2586$class_9473 arg0)
readComponents(BlockEntity$ComponentsAccess components)
public final void
a(cxp arg0)
applyComponentsFromItemStack(ItemStack arg0)
method_58683(class_1799 arg0)
readComponents(ItemStack stack)
public final void
a(kq arg0, kr arg1)
applyComponents(DataComponentMap arg0, DataComponentPatch arg1)
method_58685(class_9323 arg0, class_9326 arg1)
readComponents(ComponentMap defaultComponents, ComponentChanges components)
protected void
a(kq$a arg0)
collectImplicitComponents(DataComponentMap$Builder arg0)
method_57567(class_9323$class_9324 arg0)
addComponents(ComponentMap$Builder builder)
public void
a(ux arg0)
removeComponentsFromTag(CompoundTag arg0)
method_57569(class_2487 arg0)
removeFromCopiedStackNbt(NbtCompound nbt)
public final DataComponentMap
r()
collectComponents()
method_57590()
createComponentMap()
public DataComponentMap
s()
components()
method_58693()
getComponents()
public void
a(kq arg0)
setComponents(DataComponentMap arg0)
method_58684(class_9323 arg0)
setComponents(ComponentMap components)
public static Component
a(String arg0, js$a arg1)
parseCustomNameSafe(String arg0, HolderLookup$Provider arg1)
method_59894(String arg0, class_7225$class_7874 arg1)
tryParseCustomName(String json, RegistryWrapper$WrapperLookup registries)