Package net.minecraft.world.level.chunk
Class ProtoChunk
java.lang.Object
net.minecraft.world.level.chunk.ChunkAccess
net.minecraft.world.level.chunk.ProtoChunk
- All Implemented Interfaces:
BiomeManager.NoiseBiomeSource,BlockGetter,LightChunk,StructureAccess,LevelHeightAccessor,IAttachmentHolder,IBlockGetterExtension
- Direct Known Subclasses:
ImposterProtoChunk
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.chunk.ChunkAccess
ChunkAccess.PackedTicks -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BelowZeroRetrogenprivate final ProtoChunkTicks<Block> private CarvingMaskprivate final List<CompoundTag> private final ProtoChunkTicks<Fluid> private LevelLightEngineprivate ChunkStatusFields inherited from class net.minecraft.world.level.chunk.ChunkAccess
blendingData, blockEntities, chunkPos, heightmaps, levelHeightAccessor, NO_FILLED_SECTION, noiseChunk, pendingBlockEntities, postProcessing, sections, skyLightSources, upgradeDataFields inherited from interface net.minecraft.world.level.BlockGetter
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL -
Constructor Summary
ConstructorsConstructorDescriptionProtoChunk(ChunkPos pChunkPos, UpgradeData pUpgradeData, LevelChunkSection[] pSections, ProtoChunkTicks<Block> pBlockTicks, ProtoChunkTicks<Fluid> pLiquidTicks, LevelHeightAccessor pLevelHeightAccessor, Registry<Biome> pBiomeRegistry, BlendingData pBlendingData) ProtoChunk(ChunkPos pChunkPos, UpgradeData pUpgradeData, LevelHeightAccessor pLevelHeightAccessor, Registry<Biome> pBiomeRegistry, BlendingData pBlendingData) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntity(CompoundTag pTag) voidvoidaddPackedPostProcess(it.unimi.dsi.fastutil.shorts.ShortList p_360490_, int p_63226_) getBlockEntity(BlockPos p_63257_) getBlockEntityNbtForSaving(BlockPos p_63275_, HolderLookup.Provider p_324473_) getBlockState(BlockPos p_63264_) getFluidState(BlockPos p_63239_) getNoiseBiome(int p_204450_, int p_204451_, int p_204452_) Gets the biome at the given quart positions.getTicksForSerialization(long p_360967_) voidmarkPosForPostprocessing(BlockPos p_63266_) static shortvoidremoveBlockEntity(BlockPos p_63262_) voidsetBelowZeroRetrogen(BelowZeroRetrogen pBelowZeroRetrogen) voidsetBlockEntity(BlockEntity p_156488_) setBlockState(BlockPos p_63217_, BlockState p_63218_, boolean p_63219_) voidsetCarvingMask(CarvingMask pCarvingMask) voidsetLightEngine(LevelLightEngine pLightEngine) voidsetPersistedStatus(ChunkStatus pStatus) voidsetStartForStructure(Structure p_223432_, StructureStart p_223433_) static BlockPosunpackOffsetCoordinates(short pPackedPos, int pYOffset, ChunkPos pChunkPos) private static <T> LevelChunkTicks<T> unpackTicks(ProtoChunkTicks<T> pTicks) Methods inherited from class net.minecraft.world.level.chunk.ChunkAccess
addReferenceForStructure, canBeSerialized, carverBiome, fillBiomesFromNoise, findBlockLightSources, findBlocks, findBlocks, findBlocks, getAllReferences, getAllStarts, getAttachmentHolder, getBlendingData, getBlockEntitiesPos, getBlockEntityNbt, getData, getExistingData, getHeight, getHeight, getHeightmaps, getHighestFilledSectionIndex, getHighestGeneratedStatus, getHighestSectionPosition, getInhabitedTime, getLevel, getListenerRegistry, getMinY, getOrCreateHeightmapUnprimed, getOrCreateNoiseChunk, getOrCreateOffsetList, getPos, getPostProcessing, getReferencesForStructure, getSection, getSections, getSkyLightSources, getStartForStructure, getUpgradeData, hasAnyStructureReferences, hasAttachments, hasData, hasPrimedHeightmap, incrementInhabitedTime, initializeLightSources, isLightCorrect, isOldNoiseGeneration, isSectionEmpty, isUnsaved, isUpgrading, isYSpaceEmpty, markUnsaved, readAttachmentsFromNBT, removeData, setAllReferences, setAllStarts, setBlockEntityNbt, setData, setHeightmap, setInhabitedTime, setLightCorrect, tryMarkSaved, writeAttachmentsToNBTMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, isBlockInLineMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight
-
Field Details
-
lightEngine
-
status
-
entities
-
carvingMask
-
belowZeroRetrogen
-
blockTicks
-
fluidTicks
-
-
Constructor Details
-
ProtoChunk
public ProtoChunk(ChunkPos pChunkPos, UpgradeData pUpgradeData, LevelHeightAccessor pLevelHeightAccessor, Registry<Biome> pBiomeRegistry, @Nullable BlendingData pBlendingData) -
ProtoChunk
public ProtoChunk(ChunkPos pChunkPos, UpgradeData pUpgradeData, @Nullable LevelChunkSection[] pSections, ProtoChunkTicks<Block> pBlockTicks, ProtoChunkTicks<Fluid> pLiquidTicks, LevelHeightAccessor pLevelHeightAccessor, Registry<Biome> pBiomeRegistry, @Nullable BlendingData pBlendingData)
-
-
Method Details
-
getBlockTicks
- Specified by:
getBlockTicksin classChunkAccess
-
getFluidTicks
- Specified by:
getFluidTicksin classChunkAccess
-
getTicksForSerialization
- Specified by:
getTicksForSerializationin classChunkAccess
-
getBlockState
-
getFluidState
-
setBlockState
- Specified by:
setBlockStatein classChunkAccess
-
setBlockEntity
- Specified by:
setBlockEntityin classChunkAccess
-
getBlockEntity
-
getBlockEntities
-
addEntity
-
addEntity
- Specified by:
addEntityin classChunkAccess
-
setStartForStructure
- Specified by:
setStartForStructurein interfaceStructureAccess- Overrides:
setStartForStructurein classChunkAccess
-
getEntities
-
getPersistedStatus
- Specified by:
getPersistedStatusin classChunkAccess
-
setPersistedStatus
-
getNoiseBiome
Description copied from interface:BiomeManager.NoiseBiomeSourceGets the biome at the given quart positions. Note that the coordinates passed into this method are 1/4 the scale of block coordinates.- Specified by:
getNoiseBiomein interfaceBiomeManager.NoiseBiomeSource- Overrides:
getNoiseBiomein classChunkAccess
-
packOffsetCoordinates
-
unpackOffsetCoordinates
-
markPosForPostprocessing
- Overrides:
markPosForPostprocessingin classChunkAccess
-
addPackedPostProcess
public void addPackedPostProcess(it.unimi.dsi.fastutil.shorts.ShortList p_360490_, int p_63226_) - Overrides:
addPackedPostProcessin classChunkAccess
-
getBlockEntityNbts
-
getBlockEntityNbtForSaving
@Nullable public CompoundTag getBlockEntityNbtForSaving(BlockPos p_63275_, HolderLookup.Provider p_324473_) - Specified by:
getBlockEntityNbtForSavingin classChunkAccess
-
removeBlockEntity
- Specified by:
removeBlockEntityin classChunkAccess
-
getCarvingMask
-
getOrCreateCarvingMask
-
setCarvingMask
-
setLightEngine
-
setBelowZeroRetrogen
-
getBelowZeroRetrogen
- Overrides:
getBelowZeroRetrogenin classChunkAccess
-
unpackTicks
-
unpackBlockTicks
-
unpackFluidTicks
-
getHeightAccessorForGeneration
- Overrides:
getHeightAccessorForGenerationin classChunkAccess
-