net.minecraft.world.level.chunk

public class LevelChunk

extends ChunkAccess

All mapped superinterfaces:

BlockGetter, LevelHeightAccessor, BiomeManager$NoiseBiomeSource, LightChunk, StructureAccess

dhq
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
n
LOGGER
field_12839
LOGGER
f_62771_
private static final TickingBlockEntity
o
NULL_TICKER
field_27221
EMPTY_BLOCK_ENTITY_TICKER
f_156361_
private final Map<BlockPos, LevelChunk$RebindableTickingBlockEntityWrapper>
p
tickersInLevel
field_27222
blockEntityTickers
f_156362_
private boolean
q
loaded
field_12855
loadedToWorld
f_62775_
final Level
r
level
field_12858
world
f_62776_
private Supplier<FullChunkStatus>
s
fullStatus
field_12856
levelTypeProvider
f_62790_
private LevelChunk$PostLoadProcessor
t
postLoad
field_12850
entityLoader
f_62791_
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<GameEventListenerRegistry>
u
gameEventListenerRegistrySections
field_28129
gameEventDispatchers
f_244451_
private final LevelChunkTicks<Block>
v
blockTicks
field_35471
blockTickScheduler
f_62784_
private final LevelChunkTicks<Fluid>
w
fluidTicks
field_35472
fluidTickScheduler
f_187943_

Constructor summary

ModifierConstructor
public (Level world, ChunkPos pos)
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 GameEventListenerRegistry
a(int arg0)
getListenerRegistry(int arg0)
method_32914(int arg0)
getGameEventDispatcher(int arg0)
m_246686_(int arg0)
public BlockState
a_(gw arg0)
getBlockState(BlockPos arg0)
method_8320(class_2338 arg0)
getBlockState(BlockPos arg0)
m_8055_(C_4675_ arg0)
public FluidState
b_(gw 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(gw arg0, dfj 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(biq arg0)
addEntity(Entity arg0)
method_12002(class_1297 arg0)
addEntity(Entity arg0)
m_6286_(C_507_ arg0)
private BlockEntity
j(gw arg0)
createBlockEntity(BlockPos arg0)
method_12208(class_2338 arg0)
createBlockEntity(BlockPos pos)
m_62934_(C_4675_ arg0)
public BlockEntity
c_(gw arg0)
getBlockEntity(BlockPos arg0)
method_8321(class_2338 arg0)
getBlockEntity(BlockPos arg0)
m_7702_(C_4675_ arg0)
public BlockEntity
a(gw arg0, dhq$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_2137_$C_2138_ arg1)
public void
b(dcv arg0)
addAndRegisterBlockEntity(BlockEntity arg0)
method_12216(class_2586 arg0)
addBlockEntity(BlockEntity blockEntity)
m_142170_(C_1991_ arg0)
private boolean
K()
isInLevel()
method_31715()
canTickBlockEntities()
m_156370_()
boolean
k(gw arg0)
isTicking(BlockPos arg0)
method_31724(class_2338 arg0)
canTickBlockEntity(BlockPos pos)
m_156410_(C_4675_ arg0)
public void
a(dcv arg0)
setBlockEntity(BlockEntity arg0)
method_12007(class_2586 arg0)
setBlockEntity(BlockEntity arg0)
m_142169_(C_1991_ arg0)
public CompoundTag
g(gw arg0)
getBlockEntityNbtForSaving(BlockPos arg0)
method_20598(class_2338 arg0)
getPackedBlockEntityNbt(BlockPos arg0)
m_8051_(C_4675_ arg0)
public void
d(gw 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, akq arg1)
removeGameEventListener(T arg0, ServerLevel arg1)
method_32918(T arg0, class_3218 arg1)
removeGameEventListener(T blockEntity, ServerWorld world)
m_223412_(T p_223414_, C_12_ arg1)
private void
c(int arg0)
removeGameEventListenerRegistry(int arg0)
method_51382(int arg0)
removeGameEventDispatcher(int ySectionCoord)
m_280642_(int arg0)
private void
l(gw arg0)
removeBlockEntityTicker(BlockPos arg0)
method_31725(class_2338 arg0)
removeBlockEntityTicker(BlockPos pos)
m_156412_(C_4675_ arg0)
public void
E()
runPostLoad()
method_12206()
loadEntities()
m_62952_()
public boolean
C()
isEmpty()
method_12223()
isEmpty()
m_6430_()
public void
a(so arg0, qw arg1, Consumer<yf$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_183117_$C_183119_> arg2)
public void
a(so arg0)
replaceBiomes(FriendlyByteBuf arg0)
method_49525(class_2540 arg0)
loadBiomeFromPacket(PacketByteBuf buf)
m_274381_(C_4983_ arg0)
public void
c(boolean arg0)
setLoaded(boolean arg0)
method_12226(boolean arg0)
setLoadedToWorld(boolean loadedToWorld)
m_62913_(boolean arg0)
public Level
F()
getLevel()
method_12200()
getWorld()
m_62953_()
public Map<BlockPos, BlockEntity>
G()
getBlockEntities()
method_12214()
getBlockEntities()
m_62954_()
public void
H()
postProcessGeneration()
method_12221()
runPostProcessing()
m_62812_()
private BlockEntity
a(gw arg0, qw 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(akq arg0)
registerTickContainerInLevel(ServerLevel arg0)
method_39305(class_3218 arg0)
addChunkTickSchedulers(ServerWorld world)
m_187958_(C_12_ arg0)
public void
b(akq 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 FullChunkStatus
D()
getFullStatus()
method_12225()
getLevelType()
m_287138_()
public void
b(Supplier<akj> arg0)
setFullStatus(Supplier<FullChunkStatus> arg0)
method_12207(Supplier<class_3194> arg0)
setLevelTypeProvider(Supplier<ChunkLevelType> levelTypeProvider)
m_62879_(Supplier<C_286921_> arg0)
public void
I()
clearAllBlockEntities()
method_38289()
clear()
m_187957_()
public void
J()
registerAllBlockEntitiesAfterLevelLoad()
method_31713()
updateAllBlockEntities()
m_156369_()
private <T extends BlockEntity> void
b(T arg0, akq arg1)
addGameEventListener(T arg0, ServerLevel arg1)
method_32919(T arg0, class_3218 arg1)
updateGameEventListener(T blockEntity, ServerWorld world)
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, dcw<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)