net.minecraft.world.level.chunk

public class LevelChunk

extends ChunkAccess

All mapped superinterfaces:

BlockGetter, LevelHeightAccessor, BiomeManager$NoiseBiomeSource, StructureAccess

cxt
net.minecraft.world.level.chunk.LevelChunk
net.minecraft.class_2818
net.minecraft.world.chunk.WorldChunk
net.minecraft.src.C_2137_
net.minecraft.world.level.chunk.Chunk

Field summary

Modifier and TypeField
static final org.slf4j.Logger
l
LOGGER
field_12839
LOGGER
f_62771_
private static final TickingBlockEntity
m
NULL_TICKER
field_27221
EMPTY_BLOCK_ENTITY_TICKER
f_156361_
private final Map<BlockPos, LevelChunk$RebindableTickingBlockEntityWrapper>
n
tickersInLevel
field_27222
blockEntityTickers
f_156362_
private boolean
o
loaded
field_12855
loadedToWorld
f_62775_
private boolean
p
clientLightReady
field_36218
shouldRenderOnUpdate
f_196848_
final Level
q
level
field_12858
world
f_62776_
private Supplier<ChunkHolder$FullChunkStatus>
r
fullStatus
field_12856
levelTypeProvider
f_62790_
private LevelChunk$PostLoadProcessor
s
postLoad
field_12850
entityLoader
f_62791_
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<GameEventDispatcher>
t
gameEventDispatcherSections
field_28129
gameEventDispatchers
f_156363_
private final LevelChunkTicks<Block>
u
blockTicks
field_35471
blockTickScheduler
f_62784_
private final LevelChunkTicks<Fluid>
v
fluidTicks
field_35472
fluidTickScheduler
f_187943_

Constructor summary

ModifierConstructor
public (Level p_187946_, ChunkPos arg1)
public (Level world, ChunkPos pos, UpgradeData upgradeData, LevelChunkTicks<Block> blockTickScheduler, LevelChunkTicks<Fluid> fluidTickScheduler, long inhabitedTime, LevelChunkSection[] sectionArrayInitializer, LevelChunk$PostLoadProcessor entityLoader, BlendingData blendingData)
public (ServerLevel world, ProtoChunk protoChunk, LevelChunk$PostLoadProcessor entityLoader)

Method summary

Modifier and TypeMethod
public TickContainerAccess<Block>
o()
getBlockTicks()
method_12013()
getBlockTickScheduler()
m_183531_()
public TickContainerAccess<Fluid>
p()
getFluidTicks()
method_12014()
getFluidTickScheduler()
m_183526_()
public ChunkAccess$TicksToSave
q()
getTicksForSerialization()
method_39296()
getTickSchedulers()
m_183568_()
public GameEventDispatcher
a(int arg0)
getEventDispatcher(int arg0)
method_32914(int arg0)
getGameEventDispatcher(int arg0)
m_142336_(int arg0)
public BlockState
a_(gt arg0)
getBlockState(BlockPos arg0)
method_8320(class_2338 arg0)
getBlockState(BlockPos arg0)
m_8055_(C_4675_ arg0)
public FluidState
b_(gt arg0)
getFluidState(BlockPos arg0)
method_8316(class_2338 arg0)
getFluidState(BlockPos arg0)
m_6425_(C_4675_ arg0)
public FluidState
a(int arg0, int arg1, int arg2)
getFluidState(int arg0, int arg1, int arg2)
method_12234(int arg0, int arg1, int arg2)
getFluidState(int x, int y, int z)
m_62814_(int p_62816_, int p_62817_, int arg2)
public BlockState
a(gt arg0, cvo arg1, boolean arg2)
setBlockState(BlockPos arg0, BlockState arg1, boolean arg2)
method_12010(class_2338 arg0, class_2680 arg1, boolean arg2)
setBlockState(BlockPos arg0, BlockState arg1, boolean arg2)
m_6978_(C_4675_ p_62866_, C_2064_ p_62867_, boolean arg2)
public void
a(bbn arg0)
addEntity(Entity arg0)
method_12002(class_1297 arg0)
addEntity(Entity arg0)
m_6286_(C_507_ arg0)
private BlockEntity
j(gt arg0)
createBlockEntity(BlockPos arg0)
method_12208(class_2338 arg0)
createBlockEntity(BlockPos pos)
m_62934_(C_4675_ arg0)
public BlockEntity
c_(gt arg0)
getBlockEntity(BlockPos arg0)
method_8321(class_2338 arg0)
getBlockEntity(BlockPos arg0)
m_7702_(C_4675_ arg0)
public BlockEntity
a(gt arg0, cxt$b arg1)
getBlockEntity(BlockPos arg0, LevelChunk$EntityCreationType arg1)
method_12201(class_2338 arg0, class_2818$class_2819 arg1)
getBlockEntity(BlockPos pos, WorldChunk$CreationType creationType)
m_5685_(C_4675_ p_62869_, C_2138_ arg1)
public void
b(cti arg0)
addAndRegisterBlockEntity(BlockEntity arg0)
method_12216(class_2586 arg0)
addBlockEntity(BlockEntity arg0)
m_142170_(C_1991_ arg0)
private boolean
J()
isInLevel()
method_31715()
canTickBlockEntities()
m_156370_()
boolean
k(gt arg0)
isTicking(BlockPos arg0)
method_31724(class_2338 arg0)
canTickBlockEntity(BlockPos pos)
m_156410_(C_4675_ arg0)
public void
a(cti arg0)
setBlockEntity(BlockEntity arg0)
method_12007(class_2586 arg0)
setBlockEntity(BlockEntity arg0)
m_142169_(C_1991_ arg0)
public CompoundTag
g(gt arg0)
getBlockEntityNbtForSaving(BlockPos arg0)
method_20598(class_2338 arg0)
getPackedBlockEntityNbt(BlockPos arg0)
m_8051_(C_4675_ arg0)
public void
d(gt arg0)
removeBlockEntity(BlockPos arg0)
method_12041(class_2338 arg0)
removeBlockEntity(BlockPos arg0)
m_8114_(C_4675_ arg0)
private <T extends BlockEntity> void
a(T arg0, agg arg1)
removeGameEventListener(T arg0, ServerLevel arg1)
method_32918(T arg0, class_3218 arg1)
removeGameEventListener(T blockEntity, ServerWorld arg1)
m_223412_(T p_223414_, C_12_ arg1)
private void
l(gt arg0)
removeBlockEntityTicker(BlockPos arg0)
method_31725(class_2338 arg0)
removeBlockEntityTicker(BlockPos pos)
m_156412_(C_4675_ arg0)
public void
C()
runPostLoad()
method_12206()
loadEntities()
m_62952_()
public boolean
A()
isEmpty()
method_12223()
isEmpty()
m_6430_()
public void
a(qx arg0, pj arg1, Consumer<un$b> arg2)
replaceWithPacketData(FriendlyByteBuf arg0, CompoundTag arg1, Consumer<ClientboundLevelChunkPacketData$BlockEntityTagOutput> arg2)
method_12224(class_2540 arg0, class_2487 arg1, Consumer<class_6603$class_6605> arg2)
loadFromPacket(PacketByteBuf buf, NbtCompound nbt, Consumer<ChunkData$BlockEntityVisitor> arg2)
m_187971_(C_4983_ p_187973_, C_4917_ p_187974_, Consumer<C_183119_> arg2)
public void
c(boolean arg0)
setLoaded(boolean arg0)
method_12226(boolean arg0)
setLoadedToWorld(boolean loadedToWorld)
m_62913_(boolean arg0)
public Level
D()
getLevel()
method_12200()
getWorld()
m_62953_()
public Map<BlockPos, BlockEntity>
E()
getBlockEntities()
method_12214()
getBlockEntities()
m_62954_()
public Stream<BlockPos>
n()
getLights()
method_12018()
getLightSourcesStream()
m_6267_()
public void
F()
postProcessGeneration()
method_12221()
runPostProcessing()
m_62812_()
private BlockEntity
a(gt arg0, pj arg1)
promotePendingBlockEntity(BlockPos arg0, CompoundTag arg1)
method_12204(class_2338 arg0, class_2487 arg1)
loadBlockEntity(BlockPos pos, NbtCompound nbt)
m_62870_(C_4675_ p_62872_, C_4917_ arg1)
public void
c(long arg0)
unpackTicks(long arg0)
method_20530(long arg0)
disableTickSchedulers(long time)
m_187985_(long arg0)
public void
a(agg arg0)
registerTickContainerInLevel(ServerLevel arg0)
method_39305(class_3218 arg0)
addChunkTickSchedulers(ServerWorld world)
m_187958_(C_12_ arg0)
public void
b(agg arg0)
unregisterTickContainerFromLevel(ServerLevel arg0)
method_39306(class_3218 arg0)
removeChunkTickSchedulers(ServerWorld world)
m_187979_(C_12_ arg0)
public ChunkStatus
j()
getStatus()
method_12009()
getStatus()
m_6415_()
public ChunkHolder$FullChunkStatus
B()
getFullStatus()
method_12225()
getLevelType()
m_6708_()
public void
b(Supplier<afs$c> arg0)
setFullStatus(Supplier<ChunkHolder$FullChunkStatus> arg0)
method_12207(Supplier<class_3193$class_3194> arg0)
setLevelTypeProvider(Supplier<ChunkHolder$LevelType> levelTypeProvider)
m_62879_(Supplier<C_5426_> arg0)
public void
G()
clearAllBlockEntities()
method_38289()
clear()
m_187957_()
public void
H()
registerAllBlockEntitiesAfterLevelLoad()
method_31713()
updateAllBlockEntities()
m_156369_()
private <T extends BlockEntity> void
b(T arg0, agg arg1)
addGameEventListener(T arg0, ServerLevel arg1)
method_32919(T arg0, class_3218 arg1)
updateGameEventListener(T blockEntity, ServerWorld arg1)
m_223415_(T p_223417_, C_12_ arg1)
private <T extends BlockEntity> void
c(T arg0)
updateBlockEntityTicker(T arg0)
method_31723(T arg0)
updateTicker(T blockEntity)
m_156406_(T arg0)
private <T extends BlockEntity> TickingBlockEntity
a(T arg0, ctj<T> arg1)
createTicker(T arg0, BlockEntityTicker<T> arg1)
method_31718(T arg0, class_5558<T> arg1)
wrapTicker(T blockEntity, BlockEntityTicker<T> blockEntityTicker)
m_156375_(T p_156377_, C_141244_<T> arg1)
public boolean
I()
isClientLightReady()
method_39791()
shouldRenderOnUpdate()
m_196863_()
public void
d(boolean arg0)
setClientLightReady(boolean arg0)
method_39792(boolean arg0)
setShouldRenderOnUpdate(boolean shouldRenderOnUpdate)
m_196864_(boolean arg0)