net.minecraft.world.level.chunk

public abstract class ChunkAccess

implements BlockGetter, BiomeManager$NoiseBiomeSource, LightChunk, StructureAccess

dld
net.minecraft.world.level.chunk.ChunkAccess
net.minecraft.class_2791
net.minecraft.world.chunk.Chunk
net.minecraft.src.C_2116_
net.minecraft.world.level.chunk.IChunkAccess

Field summary

Modifier and TypeField
public static final int
a
NO_FILLED_SECTION
field_44632
MISSING_SECTION
f_279635_
private static final org.slf4j.Logger
n
LOGGER
field_34548
LOGGER
f_187613_
private static final it.unimi.dsi.fastutil.longs.LongSet
o
EMPTY_REFERENCE_SET
field_37052
EMPTY_STRUCTURE_REFERENCES
f_207932_
protected final it.unimi.dsi.fastutil.shorts.ShortList[]
b
postProcessing
field_34536
postProcessingLists
f_187602_
protected volatile boolean
c
unsaved
field_34537
needsSaving
f_187603_
private volatile boolean
p
isLightCorrect
field_34549
lightOn
f_187614_
protected final ChunkPos
d
chunkPos
field_34538
pos
f_187604_
private long
q
inhabitedTime
field_34550
inhabitedTime
f_187615_
private BiomeGenerationSettings
r
carverBiomeSettings
field_39411
generationSettings
f_223003_
protected NoiseChunk
e
noiseChunk
field_34539
chunkNoiseSampler
f_187605_
protected final UpgradeData
f
upgradeData
field_34540
upgradeData
f_187606_
protected BlendingData
g
blendingData
field_35468
blendingData
f_187607_
protected final Map<Heightmap$Types, Heightmap>
h
heightmaps
field_34541
heightmaps
f_187608_
protected ChunkSkyLightSources
i
skyLightSources
field_44708
chunkSkyLight
f_283754_
private final Map<Structure, StructureStart>
s
structureStarts
field_34552
structureStarts
f_187617_
private final Map<Structure, it.unimi.dsi.fastutil.longs.LongSet>
t
structuresRefences
field_34553
structureReferences
f_187618_
protected final Map<BlockPos, CompoundTag>
j
pendingBlockEntities
field_34542
blockEntityNbts
f_187609_
protected final Map<BlockPos, BlockEntity>
k
blockEntities
field_34543
blockEntities
f_187610_
protected final LevelHeightAccessor
l
levelHeightAccessor
field_34544
heightLimitView
f_187611_
protected final LevelChunkSection[]
m
sections
field_34545
sectionArray
f_187612_

Constructor summary

ModifierConstructor
public (ChunkPos pos, UpgradeData upgradeData, LevelHeightAccessor heightLimitView, Registry<Biome> biomeRegistry, long inhabitedTime, LevelChunkSection[] sectionArray, BlendingData blendingData)

Method summary

Modifier and TypeMethod
private static void
a(it<cuo> arg0, dlp[] arg1)
replaceMissingSections(Registry<Biome> arg0, LevelChunkSection[] arg1)
method_38256(class_2378<class_1959> arg0, class_2826[] arg1)
fillSectionArray(Registry<Biome> biomeRegistry, ChunkSection[] sectionArray)
m_280116_(C_4705_<C_1629_> p_281389_, C_2139_[] p_282796_)
public GameEventListenerRegistry
a(int arg0)
getListenerRegistry(int arg0)
method_32914(int arg0)
getGameEventDispatcher(int ySectionCoord)
m_246686_(int arg0)
public abstract BlockState
a(hx arg0, djh arg1, boolean arg2)
setBlockState(BlockPos arg0, BlockState arg1, boolean arg2)
method_12010(class_2338 arg0, class_2680 arg1, boolean arg2)
setBlockState(BlockPos pos, BlockState state, boolean moved)
m_6978_(C_4675_ p_62088_, C_2064_ p_62089_, boolean arg2)
public abstract void
a(dgv arg0)
setBlockEntity(BlockEntity arg0)
method_12007(class_2586 arg0)
setBlockEntity(BlockEntity blockEntity)
m_142169_(C_1991_ arg0)
public abstract void
a(blv arg0)
addEntity(Entity arg0)
method_12002(class_1297 arg0)
addEntity(Entity entity)
m_6286_(C_507_ arg0)
public int
a()
getHighestFilledSectionIndex()
method_12040()
getHighestNonEmptySection()
m_280525_()
public int
b()
getHighestSectionPosition()
method_12031()
getHighestNonEmptySectionYOffset()
m_62098_()
public Set<BlockPos>
c()
getBlockEntitiesPos()
method_12021()
getBlockEntityPositions()
m_5928_()
public LevelChunkSection[]
d()
getSections()
method_12006()
getSectionArray()
m_7103_()
public LevelChunkSection
b(int arg0)
getSection(int arg0)
method_38259(int arg0)
getSection(int yIndex)
m_183278_(int arg0)
public Collection<Map$Entry<Heightmap$Types, Heightmap>>
e()
getHeightmaps()
method_12011()
getHeightmaps()
m_6890_()
public void
a(doq$a arg0, long[] arg1)
setHeightmap(Heightmap$Types arg0, long[] arg1)
method_12037(class_2902$class_2903 arg0, long[] arg1)
setHeightmap(Heightmap$Type type, long[] heightmap)
m_6511_(C_2190_$C_2191_ p_62084_, long[] arg1)
public Heightmap
a(doq$a arg0)
getOrCreateHeightmapUnprimed(Heightmap$Types arg0)
method_12032(class_2902$class_2903 arg0)
getHeightmap(Heightmap$Type type)
m_6005_(C_2190_$C_2191_ arg0)
public boolean
b(doq$a arg0)
hasPrimedHeightmap(Heightmap$Types arg0)
method_39295(class_2902$class_2903 arg0)
hasHeightmap(Heightmap$Type type)
m_187658_(C_2190_$C_2191_ arg0)
public int
a(doq$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 type, int x, int z)
m_5885_(C_2190_$C_2191_ p_62081_, int p_62082_, int arg2)
public ChunkPos
f()
getPos()
method_12004()
getPos()
m_7697_()
public StructureStart
a(dzg arg0)
getStartForStructure(Structure arg0)
method_12181(class_3195 arg0)
getStructureStart(Structure arg0)
m_213652_(C_213164_ arg0)
public void
a(dzg arg0, dzo arg1)
setStartForStructure(Structure arg0, StructureStart arg1)
method_12184(class_3195 arg0, class_3449 arg1)
setStructureStart(Structure arg0, StructureStart arg1)
m_213792_(C_213164_ p_223011_, C_2588_ arg1)
public Map<Structure, StructureStart>
g()
getAllStarts()
method_12016()
getStructureStarts()
m_6633_()
public void
a(Map<dzg, dzo> arg0)
setAllStarts(Map<Structure, StructureStart> arg0)
method_12034(Map<class_3195, class_3449> arg0)
setStructureStarts(Map<Structure, StructureStart> structureStarts)
m_8040_(Map<C_213164_, C_2588_> arg0)
public it.unimi.dsi.fastutil.longs.LongSet
b(dzg arg0)
getReferencesForStructure(Structure arg0)
method_12180(class_3195 arg0)
getStructureReferences(Structure arg0)
m_213649_(C_213164_ arg0)
public void
a(dzg arg0, long arg1)
addReferenceForStructure(Structure arg0, long arg1)
method_12182(class_3195 arg0, long arg1)
addStructureReference(Structure arg0, long arg1)
m_213843_(C_213164_ p_223008_, long arg1)
public Map<Structure, it.unimi.dsi.fastutil.longs.LongSet>
h()
getAllReferences()
method_12179()
getStructureReferences()
m_62769_()
public void
b(Map<dzg, it.unimi.dsi.fastutil.longs.LongSet> arg0)
setAllReferences(Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> arg0)
method_12183(Map<class_3195, it.unimi.dsi.fastutil.longs.LongSet> arg0)
setStructureReferences(Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> arg0)
m_62737_(Map<C_213164_, it.unimi.dsi.fastutil.longs.LongSet> arg0)
public boolean
a(int arg0, int arg1)
isYSpaceEmpty(int arg0, int arg1)
method_12228(int arg0, int arg1)
areSectionsEmptyBetween(int lowerHeight, int upperHeight)
m_5566_(int p_62076_, int arg1)
public void
a(boolean arg0)
setUnsaved(boolean arg0)
method_12008(boolean arg0)
setNeedsSaving(boolean needsSaving)
m_8092_(boolean arg0)
public boolean
i()
isUnsaved()
method_12044()
needsSaving()
m_6344_()
public abstract ChunkStatus
j()
getStatus()
method_12009()
getStatus()
m_6415_()
public ChunkStatus
k()
getHighestGeneratedStatus()
method_51526()
method_51526()
m_284331_()
public abstract void
d(hx arg0)
removeBlockEntity(BlockPos arg0)
method_12041(class_2338 arg0)
removeBlockEntity(BlockPos pos)
m_8114_(C_4675_ arg0)
public void
e(hx arg0)
markPosForPostprocessing(BlockPos arg0)
method_12039(class_2338 arg0)
markBlockForPostProcessing(BlockPos pos)
m_8113_(C_4675_ arg0)
public it.unimi.dsi.fastutil.shorts.ShortList[]
n()
getPostProcessing()
method_12012()
getPostProcessingLists()
m_6720_()
public void
a(short arg0, int arg1)
addPackedPostProcess(short arg0, int arg1)
method_12029(short arg0, int arg1)
markBlockForPostProcessing(short packedPos, int index)
m_6561_(short p_62093_, int arg1)
public void
a(sn arg0)
setBlockEntityNbt(CompoundTag arg0)
method_12042(class_2487 arg0)
addPendingBlockEntityNbt(NbtCompound nbt)
m_5604_(C_4917_ arg0)
public CompoundTag
f(hx arg0)
getBlockEntityNbt(BlockPos arg0)
method_12024(class_2338 arg0)
getBlockEntityNbt(BlockPos pos)
m_8049_(C_4675_ arg0)
public abstract CompoundTag
g(hx arg0)
getBlockEntityNbtForSaving(BlockPos arg0)
method_20598(class_2338 arg0)
getPackedBlockEntityNbt(BlockPos pos)
m_8051_(C_4675_ arg0)
public final void
a(BiConsumer<hx, djh> arg0)
findBlockLightSources(BiConsumer<BlockPos, BlockState> arg0)
method_51524(BiConsumer<class_2338, class_2680> arg0)
forEachLightSource(BiConsumer<BlockPos, BlockState> arg0)
m_284254_(BiConsumer<C_4675_, C_2064_> arg0)
public void
a(Predicate<djh> arg0, BiConsumer<hx, djh> arg1)
findBlocks(Predicate<BlockState> arg0, BiConsumer<BlockPos, BlockState> arg1)
method_51525(Predicate<class_2680> arg0, BiConsumer<class_2338, class_2680> arg1)
forEachBlockMatchingPredicate(Predicate<BlockState> predicate, BiConsumer<BlockPos, BlockState> consumer)
m_284478_(Predicate<C_2064_> p_285030_, BiConsumer<C_4675_, C_2064_> arg1)
public abstract TickContainerAccess<Block>
o()
getBlockTicks()
method_12013()
getBlockTickScheduler()
m_183531_()
public abstract TickContainerAccess<Fluid>
p()
getFluidTicks()
method_12014()
getFluidTickScheduler()
m_183526_()
public abstract ChunkAccess$TicksToSave
q()
getTicksForSerialization()
method_39296()
getTickSchedulers()
m_183568_()
public UpgradeData
r()
getUpgradeData()
method_12003()
getUpgradeData()
m_7387_()
public boolean
s()
isOldNoiseGeneration()
method_39297()
usesOldNoise()
m_187675_()
public BlendingData
t()
getBlendingData()
method_39299()
getBlendingData()
m_183407_()
public void
a(dpt arg0)
setBlendingData(BlendingData arg0)
method_39294(class_6749 arg0)
setBlendingData(BlendingData blendingData)
m_183400_(C_182959_ arg0)
public long
u()
getInhabitedTime()
method_12033()
getInhabitedTime()
m_6319_()
public void
a(long arg0)
incrementInhabitedTime(long arg0)
method_38870(long arg0)
increaseInhabitedTime(long delta)
m_187632_(long arg0)
public void
b(long arg0)
setInhabitedTime(long arg0)
method_12028(long arg0)
setInhabitedTime(long inhabitedTime)
m_6141_(long arg0)
public static it.unimi.dsi.fastutil.shorts.ShortList
a(it.unimi.dsi.fastutil.shorts.ShortList[] arg0, int arg1)
getOrCreateOffsetList(it.unimi.dsi.fastutil.shorts.ShortList[] arg0, int arg1)
method_12026(it.unimi.dsi.fastutil.shorts.ShortList[] arg0, int arg1)
getList(it.unimi.dsi.fastutil.shorts.ShortList[] lists, int index)
m_62095_(it.unimi.dsi.fastutil.shorts.ShortList[] p_62096_, int p_62097_)
public boolean
v()
isLightCorrect()
method_12038()
isLightOn()
m_6332_()
public void
b(boolean arg0)
setLightCorrect(boolean arg0)
method_12020(boolean arg0)
setLightOn(boolean lightOn)
m_8094_(boolean arg0)
public int
J_()
getMinBuildHeight()
method_31607()
getBottomY()
m_141937_()
public int
K_()
getHeight()
method_31605()
getHeight()
m_141928_()
public NoiseChunk
a(Function<dld, dou> arg0)
getOrCreateNoiseChunk(Function<ChunkAccess, NoiseChunk> arg0)
method_38255(Function<class_2791, class_6568> arg0)
getOrCreateChunkNoiseSampler(Function<Chunk, ChunkNoiseSampler> chunkNoiseSamplerCreator)
m_223012_(Function<C_2116_, C_182895_> arg0)
public BiomeGenerationSettings
a(Supplier<cup> arg0)
carverBiome(Supplier<BiomeGenerationSettings> arg0)
method_44214(Supplier<class_5485> arg0)
getOrCreateGenerationSettings(Supplier<GenerationSettings> generationSettingsCreator)
m_223014_(Supplier<C_1639_> arg0)
public Holder<Biome>
getNoiseBiome(int arg0, int arg1, int arg2)
getNoiseBiome(int arg0, int arg1, int arg2)
method_16359(int arg0, int arg1, int arg2)
getBiomeForNoiseGen(int arg0, int arg1, int arg2)
m_203495_(int p_204348_, int p_204349_, int arg2)
public void
a(cur arg0, cux$f arg1)
fillBiomesFromNoise(BiomeResolver arg0, Climate$Sampler arg1)
method_38257(class_6780 arg0, class_6544$class_6552 arg1)
populateBiomes(BiomeSupplier biomeSupplier, MultiNoiseUtil$MultiNoiseSampler sampler)
m_183442_(C_182855_ p_187639_, C_182857_$C_182866_ arg1)
public boolean
w()
hasAnyStructureReferences()
method_38871()
hasStructureReferences()
m_187678_()
public BelowZeroRetrogen
x()
getBelowZeroRetrogen()
method_39300()
getBelowZeroRetrogen()
m_183376_()
public boolean
y()
isUpgrading()
method_39461()
hasBelowZeroRetrogen()
m_187679_()
public LevelHeightAccessor
z()
getHeightAccessorForGeneration()
method_39460()
getHeightLimitView()
m_183618_()
public void
A()
initializeLightSources()
method_51522()
refreshSurfaceY()
m_284190_()
public ChunkSkyLightSources
B()
getSkyLightSources()
method_12018()
getChunkSkyLight()
m_284400_()