net.minecraft.world.level.chunk

public abstract class ChunkAccess

implements BiomeManager$NoiseBiomeSource, LightChunk, StructureAccess

dzq
net.minecraft.world.level.chunk.ChunkAccess
net.minecraft.class_2791
net.minecraft.world.chunk.Chunk
net.minecraft.world.level.chunk.IChunkAccess

Field summary

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

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(kd<dik> arg0, eab[] arg1)
replaceMissingSections(Registry<Biome> arg0, LevelChunkSection[] arg1)
method_38256(class_2378<class_1959> arg0, class_2826[] arg1)
fillSectionArray(Registry<Biome> biomeRegistry, ChunkSection[] sectionArray)
public GameEventListenerRegistry
a(int arg0)
getListenerRegistry(int arg0)
method_32914(int arg0)
getGameEventDispatcher(int ySectionCoord)
public abstract BlockState
a(jh arg0, dxv 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)
public abstract void
a(dux arg0)
setBlockEntity(BlockEntity arg0)
method_12007(class_2586 arg0)
setBlockEntity(BlockEntity blockEntity)
public abstract void
a(bvk arg0)
addEntity(Entity arg0)
method_12002(class_1297 arg0)
addEntity(Entity entity)
public int
a()
getHighestFilledSectionIndex()
method_12040()
getHighestNonEmptySection()
public int
b()
getHighestSectionPosition()
method_12031()
getHighestNonEmptySectionYOffset()
public Set<BlockPos>
c()
getBlockEntitiesPos()
method_12021()
getBlockEntityPositions()
public LevelChunkSection[]
d()
getSections()
method_12006()
getSectionArray()
public LevelChunkSection
b(int arg0)
getSection(int arg0)
method_38259(int arg0)
getSection(int yIndex)
public Collection<Map$Entry<Heightmap$Types, Heightmap>>
e()
getHeightmaps()
method_12011()
getHeightmaps()
public void
a(edq$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)
public Heightmap
a(edq$a arg0)
getOrCreateHeightmapUnprimed(Heightmap$Types arg0)
method_12032(class_2902$class_2903 arg0)
getHeightmap(Heightmap$Type type)
public boolean
b(edq$a arg0)
hasPrimedHeightmap(Heightmap$Types arg0)
method_39295(class_2902$class_2903 arg0)
hasHeightmap(Heightmap$Type type)
public int
a(edq$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)
public ChunkPos
f()
getPos()
method_12004()
getPos()
public StructureStart
a(eok arg0)
getStartForStructure(Structure arg0)
method_12181(class_3195 arg0)
getStructureStart(Structure arg0)
public void
a(eok arg0, eos arg1)
setStartForStructure(Structure arg0, StructureStart arg1)
method_12184(class_3195 arg0, class_3449 arg1)
setStructureStart(Structure arg0, StructureStart arg1)
public Map<Structure, StructureStart>
g()
getAllStarts()
method_12016()
getStructureStarts()
public void
a(Map<eok, eos> arg0)
setAllStarts(Map<Structure, StructureStart> arg0)
method_12034(Map<class_3195, class_3449> arg0)
setStructureStarts(Map<Structure, StructureStart> structureStarts)
public it.unimi.dsi.fastutil.longs.LongSet
b(eok arg0)
getReferencesForStructure(Structure arg0)
method_12180(class_3195 arg0)
getStructureReferences(Structure arg0)
public void
a(eok arg0, long arg1)
addReferenceForStructure(Structure arg0, long arg1)
method_12182(class_3195 arg0, long arg1)
addStructureReference(Structure arg0, long arg1)
public Map<Structure, it.unimi.dsi.fastutil.longs.LongSet>
h()
getAllReferences()
method_12179()
getStructureReferences()
public void
b(Map<eok, 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)
public boolean
a(int arg0, int arg1)
isYSpaceEmpty(int arg0, int arg1)
method_12228(int arg0, int arg1)
areSectionsEmptyBetween(int lowerHeight, int upperHeight)
public boolean
c(int arg0)
isSectionEmpty(int arg0)
method_60791(int arg0)
isSectionEmpty(int sectionCoord)
public void
i()
markUnsaved()
method_65063()
markNeedsSaving()
public boolean
j()
tryMarkSaved()
method_65064()
tryMarkSaved()
public boolean
k()
isUnsaved()
method_12044()
needsSaving()
public abstract ChunkStatus
n()
getPersistedStatus()
method_12009()
getStatus()
public ChunkStatus
o()
getHighestGeneratedStatus()
method_51526()
getMaxStatus()
public abstract void
d(jh arg0)
removeBlockEntity(BlockPos arg0)
method_12041(class_2338 arg0)
removeBlockEntity(BlockPos pos)
public void
e(jh arg0)
markPosForPostprocessing(BlockPos arg0)
method_12039(class_2338 arg0)
markBlockForPostProcessing(BlockPos pos)
public it.unimi.dsi.fastutil.shorts.ShortList[]
p()
getPostProcessing()
method_12012()
getPostProcessingLists()
public void
a(it.unimi.dsi.fastutil.shorts.ShortList arg0, int arg1)
addPackedPostProcess(it.unimi.dsi.fastutil.shorts.ShortList arg0, int arg1)
method_12029(it.unimi.dsi.fastutil.shorts.ShortList arg0, int arg1)
markBlocksForPostProcessing(it.unimi.dsi.fastutil.shorts.ShortList packedPositions, int index)
public void
a(ux arg0)
setBlockEntityNbt(CompoundTag arg0)
method_12042(class_2487 arg0)
addPendingBlockEntityNbt(NbtCompound nbt)
public CompoundTag
f(jh arg0)
getBlockEntityNbt(BlockPos arg0)
method_12024(class_2338 arg0)
getBlockEntityNbt(BlockPos pos)
public abstract CompoundTag
a(jh arg0, js$a arg1)
getBlockEntityNbtForSaving(BlockPos arg0, HolderLookup$Provider arg1)
method_20598(class_2338 arg0, class_7225$class_7874 arg1)
getPackedBlockEntityNbt(BlockPos pos, RegistryWrapper$WrapperLookup registries)
public final void
a(BiConsumer<jh, dxv> arg0)
findBlockLightSources(BiConsumer<BlockPos, BlockState> arg0)
method_51524(BiConsumer<class_2338, class_2680> arg0)
forEachLightSource(BiConsumer<BlockPos, BlockState> arg0)
public void
a(Predicate<dxv> arg0, BiConsumer<jh, dxv> 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)
public abstract TickContainerAccess<Block>
q()
getBlockTicks()
method_12013()
getBlockTickScheduler()
public abstract TickContainerAccess<Fluid>
r()
getFluidTicks()
method_12014()
getFluidTickScheduler()
public boolean
s()
canBeSerialized()
method_65069()
isSerializable()
public abstract ChunkAccess$PackedTicks
a(long arg0)
getTicksForSerialization(long arg0)
method_39296(long arg0)
getTickSchedulers(long time)
public UpgradeData
t()
getUpgradeData()
method_12003()
getUpgradeData()
public boolean
u()
isOldNoiseGeneration()
method_39297()
usesOldNoise()
public BlendingData
v()
getBlendingData()
method_39299()
getBlendingData()
public long
w()
getInhabitedTime()
method_12033()
getInhabitedTime()
public void
b(long arg0)
incrementInhabitedTime(long arg0)
method_38870(long arg0)
increaseInhabitedTime(long delta)
public void
c(long arg0)
setInhabitedTime(long arg0)
method_12028(long arg0)
setInhabitedTime(long inhabitedTime)
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)
public boolean
x()
isLightCorrect()
method_12038()
isLightOn()
public void
a(boolean arg0)
setLightCorrect(boolean arg0)
method_12020(boolean arg0)
setLightOn(boolean lightOn)
public int
L_()
getMinY()
method_31607()
getBottomY()
public int
M_()
getHeight()
method_31605()
getHeight()
public NoiseChunk
a(Function<dzq, edu> arg0)
getOrCreateNoiseChunk(Function<ChunkAccess, NoiseChunk> arg0)
method_38255(Function<class_2791, class_6568> arg0)
getOrCreateChunkNoiseSampler(Function<Chunk, ChunkNoiseSampler> chunkNoiseSamplerCreator)
public BiomeGenerationSettings
a(Supplier<dil> arg0)
carverBiome(Supplier<BiomeGenerationSettings> arg0)
method_44214(Supplier<class_5485> arg0)
getOrCreateGenerationSettings(Supplier<GenerationSettings> generationSettingsCreator)
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)
public void
a(din arg0, dit$f arg1)
fillBiomesFromNoise(BiomeResolver arg0, Climate$Sampler arg1)
method_38257(class_6780 arg0, class_6544$class_6552 arg1)
populateBiomes(BiomeSupplier biomeSupplier, MultiNoiseUtil$MultiNoiseSampler sampler)
public boolean
y()
hasAnyStructureReferences()
method_38871()
hasStructureReferences()
public BelowZeroRetrogen
z()
getBelowZeroRetrogen()
method_39300()
getBelowZeroRetrogen()
public boolean
A()
isUpgrading()
method_39461()
hasBelowZeroRetrogen()
public LevelHeightAccessor
B()
getHeightAccessorForGeneration()
method_39460()
getHeightLimitView()
public void
C()
initializeLightSources()
method_51522()
refreshSurfaceY()
public ChunkSkyLightSources
D()
getSkyLightSources()
method_12018()
getChunkSkyLight()