net.minecraft.world.level.chunk

public class LevelChunk

implements ChunkAccess

cmx
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.apache.logging.log4j.Logger
b
LOGGER
field_12839
LOGGER
f_62771_
private static final TickingBlockEntity
c
NULL_TICKER
field_27221
EMPTY_BLOCK_ENTITY_TICKER
f_156361_
public static final LevelChunkSection
a
EMPTY_SECTION
field_12852
EMPTY_SECTION
f_62770_
private final LevelChunkSection[]
d
sections
field_12840
sections
f_62772_
private ChunkBiomeContainer
e
biomes
field_20655
biomeArray
f_62773_
private final Map<BlockPos, CompoundTag>
f
pendingBlockEntities
field_12846
pendingBlockEntityNbts
f_62774_
private final Map<BlockPos, LevelChunk$RebindableTickingBlockEntityWrapper>
g
tickersInLevel
field_27222
blockEntityTickers
f_156362_
private boolean
h
loaded
field_12855
loadedToWorld
f_62775_
final Level
i
level
field_12858
world
f_62776_
private final Map<Heightmap$Types, Heightmap>
j
heightmaps
field_12853
heightmaps
f_62777_
private final UpgradeData
k
upgradeData
field_12849
upgradeData
f_62778_
private final Map<BlockPos, BlockEntity>
l
blockEntities
field_12854
blockEntities
f_62779_
private final Map<StructureFeature<?>, StructureStart<?>>
m
structureStarts
field_12838
structureStarts
f_62781_
private final Map<StructureFeature<?>, it.unimi.dsi.fastutil.longs.LongSet>
n
structuresRefences
field_12845
structureReferences
f_62782_
private final it.unimi.dsi.fastutil.shorts.ShortList[]
o
postProcessing
field_12836
postProcessingLists
f_62783_
private TickList<Block>
p
blockTicks
field_12841
blockTickScheduler
f_62784_
private TickList<Fluid>
q
liquidTicks
field_12857
fluidTickScheduler
f_62785_
private volatile boolean
r
unsaved
field_12834
shouldSave
f_62788_
private long
s
inhabitedTime
field_12843
inhabitedTime
f_62789_
private Supplier<ChunkHolder$FullChunkStatus>
t
fullStatus
field_12856
levelTypeProvider
f_62790_
private Consumer<LevelChunk>
u
postLoad
field_12850
loadToWorldConsumer
f_62791_
private final ChunkPos
v
chunkPos
field_12848
pos
f_62792_
private volatile boolean
w
isLightCorrect
field_12847
lightOn
f_62793_
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<GameEventDispatcher>
x
gameEventDispatcherSections
field_28129
gameEventDispatchers
f_156363_

Constructor summary

ModifierConstructor
public (Level world, ChunkPos pos, ChunkBiomeContainer biomes)
public (Level world, ChunkPos pos, ChunkBiomeContainer biomes, UpgradeData upgradeData, TickList<Block> blockTickScheduler, TickList<Fluid> fluidTickScheduler, long inhabitedTime, LevelChunkSection[] sections, Consumer<LevelChunk> loadToWorldConsumer)
public (ServerLevel p_156366_, ProtoChunk protoChunk, Consumer<LevelChunk> arg2)

Method summary

Modifier and TypeMethod
public GameEventDispatcher
a(int arg0)
getEventDispatcher(int arg0)
method_32914(int arg0)
getGameEventDispatcher(int arg0)
m_142336_(int arg0)
public Heightmap
a(cpt$a arg0)
getOrCreateHeightmapUnprimed(Heightmap$Types arg0)
method_12032(class_2902$class_2903 arg0)
getHeightmap(Heightmap$Type arg0)
m_6005_(C_2190_$C_2191_ arg0)
public Set<BlockPos>
c()
getBlockEntitiesPos()
method_12021()
getBlockEntityPositions()
m_5928_()
public LevelChunkSection[]
d()
getSections()
method_12006()
getSectionArray()
m_7103_()
getSections()
public BlockState
a_(gg arg0)
getBlockState(BlockPos arg0)
method_8320(class_2338 arg0)
getBlockState(BlockPos arg0)
m_8055_(C_4675_ arg0)
getType(BlockPosition arg0)
public FluidState
b_(gg arg0)
getFluidState(BlockPos arg0)
method_8316(class_2338 arg0)
getFluidState(BlockPos arg0)
m_6425_(C_4675_ arg0)
getFluid(BlockPosition 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(gg arg0, ckt 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)
setType(BlockPosition arg0, IBlockData arg1, boolean arg2)
public void
a(atg arg0)
addEntity(Entity arg0)
method_12002(class_1297 arg0)
addEntity(Entity arg0)
m_6286_(C_507_ arg0)
public int
a(cpt$a arg0, int arg1, int arg2)
getHeight(Heightmap$Types arg0, int arg1, int arg2)
method_12005(class_2902$class_2903 arg0, int arg1, int arg2)
sampleHeightmap(Heightmap$Type arg0, int arg1, int arg2)
m_5885_(C_2190_$C_2191_ p_62848_, int p_62849_, int arg2)
getHighestBlock(HeightMap$Type arg0, int arg1, int arg2)
public BlockPos
b(cpt$a arg0)
getHeighestPosition(Heightmap$Types arg0)
method_35319(class_2902$class_2903 arg0)
method_35319(Heightmap$Type arg0)
m_142241_(C_2190_$C_2191_ arg0)
private BlockEntity
j(gg arg0)
createBlockEntity(BlockPos arg0)
method_12208(class_2338 arg0)
createBlockEntity(BlockPos pos)
m_62934_(C_4675_ arg0)
public BlockEntity
c_(gg arg0)
getBlockEntity(BlockPos arg0)
method_8321(class_2338 arg0)
getBlockEntity(BlockPos arg0)
m_7702_(C_4675_ arg0)
getTileEntity(BlockPosition arg0)
public BlockEntity
a(gg arg0, cmx$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(ciq arg0)
addAndRegisterBlockEntity(BlockEntity arg0)
method_12216(class_2586 arg0)
addBlockEntity(BlockEntity blockEntity)
m_142170_(C_1991_ arg0)
private boolean
E()
isInLevel()
method_31715()
canTickBlockEntities()
m_156370_()
boolean
k(gg arg0)
isTicking(BlockPos arg0)
method_31724(class_2338 arg0)
canTickBlockEntity(BlockPos pos)
m_156410_(C_4675_ arg0)
public void
a(ciq arg0)
setBlockEntity(BlockEntity arg0)
method_12007(class_2586 arg0)
setBlockEntity(BlockEntity arg0)
m_142169_(C_1991_ arg0)
setTileEntity(TileEntity arg0)
public void
a(na arg0)
setBlockEntityNbt(CompoundTag arg0)
method_12042(class_2487 arg0)
addPendingBlockEntityNbt(NbtCompound arg0)
m_5604_(C_4917_ arg0)
public CompoundTag
g(gg arg0)
getBlockEntityNbtForSaving(BlockPos arg0)
method_20598(class_2338 arg0)
getPackedBlockEntityNbt(BlockPos arg0)
m_8051_(C_4675_ arg0)
public void
d(gg arg0)
removeBlockEntity(BlockPos arg0)
method_12041(class_2338 arg0)
removeBlockEntity(BlockPos arg0)
m_8114_(C_4675_ arg0)
removeTileEntity(BlockPosition arg0)
private <T extends BlockEntity> void
c(T arg0)
removeGameEventListener(T arg0)
method_32918(T arg0)
removeGameEventListener(T blockEntity)
m_156396_(T arg0)
private void
l(gg arg0)
removeBlockEntityTicker(BlockPos arg0)
method_31725(class_2338 arg0)
removeBlockEntityTicker(BlockPos pos)
m_156412_(C_4675_ arg0)
public void
x()
runPostLoad()
method_12206()
loadToWorld()
m_62952_()
addEntities()
public void
t()
markUnsaved()
method_12220()
markDirty()
m_6427_()
markDirty()
public boolean
u()
isEmpty()
method_12223()
isEmpty()
m_6430_()
isEmpty()
public ChunkPos
f()
getPos()
method_12004()
getPos()
m_7697_()
getPos()
public void
a(cmn arg0, og arg1, na arg2, BitSet arg3)
replaceWithPacketData(ChunkBiomeContainer arg0, FriendlyByteBuf arg1, CompoundTag arg2, BitSet arg3)
method_12224(class_4548 arg0, class_2540 arg1, class_2487 arg2, BitSet arg3)
loadFromPacket(BiomeArray biomes, PacketByteBuf buf, NbtCompound nbt, BitSet arg3)
m_156383_(C_2117_ p_156385_, C_4983_ p_156386_, C_4917_ p_156387_, BitSet arg3)
private void
d(ciq arg0)
onBlockEntityRemove(BlockEntity arg0)
method_31722(class_2586 arg0)
removeBlockEntity(BlockEntity blockEntity)
m_156400_(C_1991_ arg0)
public ChunkBiomeContainer
h()
getBiomes()
method_12036()
getBiomeArray()
m_6221_()
getBiomeIndex()
public void
c(boolean arg0)
setLoaded(boolean arg0)
method_12226(boolean arg0)
setLoadedToWorld(boolean loaded)
m_62913_(boolean arg0)
setLoaded(boolean arg0)
public Level
y()
getLevel()
method_12200()
getWorld()
m_62953_()
getWorld()
public Collection<Map$Entry<Heightmap$Types, Heightmap>>
e()
getHeightmaps()
method_12011()
getHeightmaps()
m_6890_()
public Map<BlockPos, BlockEntity>
z()
getBlockEntities()
method_12214()
getBlockEntities()
m_62954_()
getTileEntities()
public CompoundTag
f(gg arg0)
getBlockEntityNbt(BlockPos arg0)
method_12024(class_2338 arg0)
getBlockEntityNbt(BlockPos arg0)
m_8049_(C_4675_ arg0)
public Stream<BlockPos>
n()
getLights()
method_12018()
getLightSourcesStream()
m_6267_()
public TickList<Block>
o()
getBlockTicks()
method_12013()
getBlockTickScheduler()
m_5782_()
public TickList<Fluid>
p()
getLiquidTicks()
method_12014()
getFluidTickScheduler()
m_5783_()
public void
a(boolean arg0)
setUnsaved(boolean arg0)
method_12008(boolean arg0)
setShouldSave(boolean arg0)
m_8092_(boolean arg0)
setNeedsSaving(boolean arg0)
public boolean
i()
isUnsaved()
method_12044()
needsSaving()
m_6344_()
isNeedsSaving()
public StructureStart<?>
a(cud<?> arg0)
getStartForFeature(StructureFeature<?> arg0)
method_12181(class_3195<?> arg0)
getStructureStart(StructureFeature<?> arg0)
m_7253_(C_2304_<?> arg0)
public void
a(cud<?> arg0, dbo<?> arg1)
setStartForFeature(StructureFeature<?> arg0, StructureStart<?> arg1)
method_12184(class_3195<?> arg0, class_3449<?> arg1)
setStructureStart(StructureFeature<?> arg0, StructureStart<?> arg1)
m_8078_(C_2304_<?> p_62860_, C_2588_<?> arg1)
public Map<StructureFeature<?>, StructureStart<?>>
g()
getAllStarts()
method_12016()
getStructureStarts()
m_6633_()
public void
a(Map<cud<?>, dbo<?>> arg0)
setAllStarts(Map<StructureFeature<?>, StructureStart<?>> arg0)
method_12034(Map<class_3195<?>, class_3449<?>> arg0)
setStructureStarts(Map<StructureFeature<?>, StructureStart<?>> arg0)
m_8040_(Map<C_2304_<?>, C_2588_<?>> arg0)
public it.unimi.dsi.fastutil.longs.LongSet
b(cud<?> arg0)
getReferencesForFeature(StructureFeature<?> arg0)
method_12180(class_3195<?> arg0)
getStructureReferences(StructureFeature<?> arg0)
m_6705_(C_2304_<?> arg0)
public void
a(cud<?> arg0, long arg1)
addReferenceForFeature(StructureFeature<?> arg0, long arg1)
method_12182(class_3195<?> arg0, long arg1)
addStructureReference(StructureFeature<?> arg0, long arg1)
m_6306_(C_2304_<?> p_62857_, long arg1)
public Map<StructureFeature<?>, it.unimi.dsi.fastutil.longs.LongSet>
w()
getAllReferences()
method_12179()
getStructureReferences()
m_7049_()
public void
b(Map<cud<?>, it.unimi.dsi.fastutil.longs.LongSet> arg0)
setAllReferences(Map<StructureFeature<?>, it.unimi.dsi.fastutil.longs.LongSet> arg0)
method_12183(Map<class_3195<?>, it.unimi.dsi.fastutil.longs.LongSet> arg0)
setStructureReferences(Map<StructureFeature<?>, it.unimi.dsi.fastutil.longs.LongSet> arg0)
m_7946_(Map<C_2304_<?>, it.unimi.dsi.fastutil.longs.LongSet> arg0)
public long
r()
getInhabitedTime()
method_12033()
getInhabitedTime()
m_6319_()
getInhabitedTime()
public void
a(long arg0)
setInhabitedTime(long arg0)
method_12028(long arg0)
setInhabitedTime(long arg0)
m_6141_(long arg0)
setInhabitedTime(long arg0)
public void
A()
postProcessGeneration()
method_12221()
runPostProcessing()
m_62812_()
private BlockEntity
a(gg arg0, na 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 UpgradeData
q()
getUpgradeData()
method_12003()
getUpgradeData()
m_7387_()
public it.unimi.dsi.fastutil.shorts.ShortList[]
k()
getPostProcessing()
method_12012()
getPostProcessingLists()
m_6720_()
public void
B()
unpackTicks()
method_20530()
disableTickSchedulers()
m_62813_()
public void
a(abr arg0)
packTicks(ServerLevel arg0)
method_20471(class_3218 arg0)
enableTickSchedulers(ServerWorld world)
m_62823_(C_12_ arg0)
public int
s_()
getMinBuildHeight()
method_31607()
getBottomY()
m_141937_()
getMinBuildHeight()
public int
t_()
getHeight()
method_31605()
getHeight()
m_141928_()
getHeight()
public ChunkStatus
j()
getStatus()
method_12009()
getStatus()
m_6415_()
getChunkStatus()
public ChunkHolder$FullChunkStatus
v()
getFullStatus()
method_12225()
getLevelType()
m_6708_()
getState()
public void
a(Supplier<abd$c> arg0)
setFullStatus(Supplier<ChunkHolder$FullChunkStatus> arg0)
method_12207(Supplier<class_3193$class_3194> arg0)
setLevelTypeProvider(Supplier<ChunkHolder$LevelType> levelTypeProvider)
m_62879_(Supplier<C_5422_$C_5426_> arg0)
public boolean
s()
isLightCorrect()
method_12038()
isLightOn()
m_6332_()
public void
b(boolean arg0)
setLightCorrect(boolean arg0)
method_12020(boolean arg0)
setLightOn(boolean arg0)
m_8094_(boolean arg0)
public void
C()
invalidateAllBlockEntities()
method_31712()
removeAllBlockEntities()
m_156368_()
public void
D()
registerAllBlockEntitiesAfterLevelLoad()
method_31713()
updateAllBlockEntities()
m_156369_()
private <T extends BlockEntity> void
e(T arg0)
addGameEventListener(T arg0)
method_32919(T arg0)
updateGameEventListener(T blockEntity)
m_156404_(T arg0)
private <T extends BlockEntity> void
f(T arg0)
updateBlockEntityTicker(T arg0)
method_31723(T arg0)
updateTicker(T blockEntity)
m_156406_(T arg0)
private <T extends BlockEntity> TickingBlockEntity
a(T arg0, cir<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)