Package net.minecraft.world.level.chunk
Class ChunkAccess
java.lang.Object
net.minecraft.world.level.chunk.ChunkAccess
- All Implemented Interfaces:
- BiomeManager.NoiseBiomeSource,- BlockGetter,- StructureAccess,- LevelHeightAccessor,- IForgeBlockGetter
- Direct Known Subclasses:
- LevelChunk,- ProtoChunk
public abstract class ChunkAccess
extends Object
implements BlockGetter, BiomeManager.NoiseBiomeSource, StructureAccess
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected BlendingDataprotected final Map<BlockPos,BlockEntity> private BiomeGenerationSettingsDeprecated.protected final ChunkPosprivate static final it.unimi.dsi.fastutil.longs.LongSetprotected final Map<Heightmap.Types,Heightmap> private longprivate booleanprotected final LevelHeightAccessorprivate static final org.slf4j.Loggerprotected NoiseChunkprotected final Map<BlockPos,CompoundTag> protected final it.unimi.dsi.fastutil.shorts.ShortList[]protected final LevelChunkSection[]private final Map<Structure,StructureStart> protected booleanprotected final UpgradeData
- 
Constructor SummaryConstructorsConstructorDescriptionChunkAccess(ChunkPos p_187621_, UpgradeData p_187622_, LevelHeightAccessor p_187623_, Registry<Biome> p_187624_, long p_187625_, LevelChunkSection[] p_187626_, BlendingData p_187627_) 
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidvoidaddPackedPostProcess(short p_62092_, int p_62093_) voidaddReferenceForStructure(Structure p_223007_, long p_223008_) carverBiome(Supplier<BiomeGenerationSettings> p_223015_) Deprecated.voidfillBiomesFromNoise(BiomeResolver p_187638_, Climate.Sampler p_187639_) getBlockEntityNbt(BlockPos p_62103_) abstract CompoundTaggetBlockEntityNbtForSaving(BlockPos p_62104_) abstract TickContainerAccess<Block>abstract TickContainerAccess<Fluid>intintgetHeight(Heightmap.Types p_62080_, int p_62081_, int p_62082_) intlonggetListenerRegistry(int p_251437_) intgetNoiseBiome(int p_204347_, int p_204348_, int p_204349_) getOrCreateHeightmapUnprimed(Heightmap.Types p_62079_) getOrCreateNoiseChunk(Function<ChunkAccess, NoiseChunk> p_223013_) static it.unimi.dsi.fastutil.shorts.ShortListgetOrCreateOffsetList(it.unimi.dsi.fastutil.shorts.ShortList[] p_62096_, int p_62097_) getPos()it.unimi.dsi.fastutil.shorts.ShortList[]it.unimi.dsi.fastutil.longs.LongSetgetReferencesForStructure(Structure p_223017_) getSection(int p_187657_) getStartForStructure(Structure p_223005_) abstract ChunkStatusabstract ChunkAccess.TicksToSavebooleanbooleanhasPrimedHeightmap(Heightmap.Types p_187659_) voidincrementInhabitedTime(long p_187633_) booleanbooleanbooleanbooleanbooleanisYSpaceEmpty(int p_62075_, int p_62076_) voidmarkPosForPostprocessing(BlockPos p_62102_) abstract voidremoveBlockEntity(BlockPos p_62101_) private static voidreplaceMissingSections(LevelHeightAccessor p_187635_, Registry<Biome> p_187636_, LevelChunkSection[] p_187637_) voidsetAllReferences(Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> p_187663_) voidsetAllStarts(Map<Structure, StructureStart> p_62090_) voidsetBlendingData(BlendingData p_187646_) abstract voidsetBlockEntity(BlockEntity p_156114_) voidsetBlockEntityNbt(CompoundTag p_62091_) abstract BlockStatesetBlockState(BlockPos p_62087_, BlockState p_62088_, boolean p_62089_) voidsetHeightmap(Heightmap.Types p_62083_, long[] p_62084_) voidsetInhabitedTime(long p_62099_) voidsetLightCorrect(boolean p_62100_) voidsetStartForStructure(Structure p_223010_, StructureStart p_223011_) voidsetUnsaved(boolean p_62094_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockGetterclip, clipWithInteractionOverride, getBlockEntity, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGettergetExistingBlockEntity, getModelDataManagerMethods inherited from interface net.minecraft.world.level.LevelHeightAccessorgetMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
EMPTY_REFERENCE_SETprivate static final it.unimi.dsi.fastutil.longs.LongSet EMPTY_REFERENCE_SET
- 
postProcessingprotected final it.unimi.dsi.fastutil.shorts.ShortList[] postProcessing
- 
unsavedprotected volatile boolean unsaved
- 
isLightCorrectprivate volatile boolean isLightCorrect
- 
chunkPos
- 
inhabitedTimeprivate long inhabitedTime
- 
carverBiomeSettingsDeprecated.
- 
noiseChunk
- 
upgradeData
- 
blendingData
- 
heightmaps
- 
structureStarts
- 
structuresRefences
- 
pendingBlockEntities
- 
blockEntities
- 
levelHeightAccessor
- 
sections
 
- 
- 
Constructor Details- 
ChunkAccesspublic ChunkAccess(ChunkPos p_187621_, UpgradeData p_187622_, LevelHeightAccessor p_187623_, Registry<Biome> p_187624_, long p_187625_, @Nullable LevelChunkSection[] p_187626_, @Nullable BlendingData p_187627_) 
 
- 
- 
Method Details- 
replaceMissingSectionsprivate static void replaceMissingSections(LevelHeightAccessor p_187635_, Registry<Biome> p_187636_, LevelChunkSection[] p_187637_) 
- 
getListenerRegistry
- 
setBlockState@Nullable public abstract BlockState setBlockState(BlockPos p_62087_, BlockState p_62088_, boolean p_62089_) 
- 
setBlockEntity
- 
addEntity
- 
getHighestSection
- 
getHighestSectionPositionpublic int getHighestSectionPosition()
- 
getBlockEntitiesPos
- 
getSections
- 
getSection
- 
getHeightmaps
- 
setHeightmap
- 
getOrCreateHeightmapUnprimed
- 
hasPrimedHeightmap
- 
getHeight
- 
getPos
- 
getStartForStructure- Specified by:
- getStartForStructurein interface- StructureAccess
 
- 
setStartForStructure- Specified by:
- setStartForStructurein interface- StructureAccess
 
- 
getAllStarts
- 
setAllStarts
- 
getReferencesForStructure- Specified by:
- getReferencesForStructurein interface- StructureAccess
 
- 
addReferenceForStructure- Specified by:
- addReferenceForStructurein interface- StructureAccess
 
- 
getAllReferences- Specified by:
- getAllReferencesin interface- StructureAccess
 
- 
setAllReferences- Specified by:
- setAllReferencesin interface- StructureAccess
 
- 
isYSpaceEmptypublic boolean isYSpaceEmpty(int p_62075_, int p_62076_) 
- 
setUnsavedpublic void setUnsaved(boolean p_62094_) 
- 
isUnsavedpublic boolean isUnsaved()
- 
getStatus
- 
removeBlockEntity
- 
markPosForPostprocessing
- 
getPostProcessingpublic it.unimi.dsi.fastutil.shorts.ShortList[] getPostProcessing()
- 
addPackedPostProcesspublic void addPackedPostProcess(short p_62092_, int p_62093_) 
- 
setBlockEntityNbt
- 
getBlockEntityNbt
- 
getBlockEntityNbtForSaving
- 
getLights
- 
getBlockTicks
- 
getFluidTicks
- 
getTicksForSerialization
- 
getUpgradeData
- 
isOldNoiseGenerationpublic boolean isOldNoiseGeneration()
- 
getBlendingData
- 
setBlendingData
- 
getInhabitedTimepublic long getInhabitedTime()
- 
incrementInhabitedTimepublic void incrementInhabitedTime(long p_187633_) 
- 
setInhabitedTimepublic void setInhabitedTime(long p_62099_) 
- 
getOrCreateOffsetListpublic static it.unimi.dsi.fastutil.shorts.ShortList getOrCreateOffsetList(it.unimi.dsi.fastutil.shorts.ShortList[] p_62096_, int p_62097_) 
- 
isLightCorrectpublic boolean isLightCorrect()
- 
setLightCorrectpublic void setLightCorrect(boolean p_62100_) 
- 
getMinBuildHeightpublic int getMinBuildHeight()- Specified by:
- getMinBuildHeightin interface- LevelHeightAccessor
 
- 
getHeightpublic int getHeight()- Specified by:
- getHeightin interface- LevelHeightAccessor
 
- 
getOrCreateNoiseChunk
- 
carverBiomeDeprecated.
- 
getNoiseBiome- Specified by:
- getNoiseBiomein interface- BiomeManager.NoiseBiomeSource
 
- 
fillBiomesFromNoise
- 
hasAnyStructureReferencespublic boolean hasAnyStructureReferences()
- 
getBelowZeroRetrogen
- 
isUpgradingpublic boolean isUpgrading()
- 
getHeightAccessorForGeneration
- 
getWorldForge
 
-