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.TicksToSave -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BelowZeroRetrogenprivate final ProtoChunkTicks<Block> private final Map<GenerationStep.Carving, CarvingMask> private 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, unsaved, upgradeData -
Constructor Summary
ConstructorsConstructorDescriptionProtoChunk(ChunkPos chunkPos, UpgradeData upgradeData, LevelChunkSection[] sections, ProtoChunkTicks<Block> blockTicks, ProtoChunkTicks<Fluid> liquidTicks, LevelHeightAccessor levelHeightAccessor, Registry<Biome> biomeRegistry, BlendingData blendingData) ProtoChunk(ChunkPos chunkPos, UpgradeData upgradeData, LevelHeightAccessor levelHeightAccessor, Registry<Biome> biomeRegistry, BlendingData blendingData) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntity(CompoundTag tag) voidvoidaddPackedPostProcess(short packedPosition, int index) getBlockEntity(BlockPos pos) getBlockEntityNbtForSaving(BlockPos pos, HolderLookup.Provider registries) getBlockState(BlockPos pos) getFluidState(BlockPos pos) getNoiseBiome(int x, int y, int z) Gets the biome at the given quart positions.voidstatic shortvoidvoidsetBelowZeroRetrogen(BelowZeroRetrogen belowZeroRetrogen) voidsetBlockEntity(BlockEntity blockEntity) setBlockState(BlockPos pos, BlockState state, boolean isMoving) voidsetCarvingMask(GenerationStep.Carving step, CarvingMask carvingMask) voidsetLightEngine(LevelLightEngine lightEngine) voidsetPersistedStatus(ChunkStatus status) voidsetStartForStructure(Structure structure, StructureStart structureStart) static BlockPosunpackOffsetCoordinates(short packedPos, int yOffset, ChunkPos chunkPos) private static <T> LevelChunkTicks<T> unpackTicks(ProtoChunkTicks<T> ticks) Methods inherited from class net.minecraft.world.level.chunk.ChunkAccess
addReferenceForStructure, carverBiome, fillBiomesFromNoise, findBlockLightSources, findBlocks, findBlocks, findBlocks, getAllReferences, getAllStarts, getAttachmentHolder, getBlendingData, getBlockEntitiesPos, getBlockEntityNbt, getData, getExistingDataOrNull, getHeight, getHeight, getHeightmaps, getHighestFilledSectionIndex, getHighestGeneratedStatus, getHighestSectionPosition, getInhabitedTime, getLevel, getListenerRegistry, getMinBuildHeight, getOrCreateHeightmapUnprimed, getOrCreateNoiseChunk, getOrCreateOffsetList, getPos, getPostProcessing, getReferencesForStructure, getSection, getSections, getSkyLightSources, getStartForStructure, getUpgradeData, hasAnyStructureReferences, hasAttachments, hasData, hasPrimedHeightmap, incrementInhabitedTime, initializeLightSources, isLightCorrect, isOldNoiseGeneration, isSectionEmpty, isUnsaved, isUpgrading, isYSpaceEmpty, readAttachmentsFromNBT, removeData, setAllReferences, setAllStarts, setBlendingData, setBlockEntityNbt, setData, setHeightmap, setInhabitedTime, setLightCorrect, setUnsaved, 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, getMaxLightLevel, isBlockInLineMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
Field Details
-
lightEngine
-
status
-
entities
-
carvingMasks
-
belowZeroRetrogen
-
blockTicks
-
fluidTicks
-
-
Constructor Details
-
ProtoChunk
public ProtoChunk(ChunkPos chunkPos, UpgradeData upgradeData, LevelHeightAccessor levelHeightAccessor, Registry<Biome> biomeRegistry, @Nullable BlendingData blendingData) -
ProtoChunk
public ProtoChunk(ChunkPos chunkPos, UpgradeData upgradeData, @Nullable LevelChunkSection[] sections, ProtoChunkTicks<Block> blockTicks, ProtoChunkTicks<Fluid> liquidTicks, LevelHeightAccessor levelHeightAccessor, Registry<Biome> biomeRegistry, @Nullable BlendingData blendingData)
-
-
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
Gets 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(short packedPosition, int index) - Overrides:
addPackedPostProcessin classChunkAccess
-
getBlockEntityNbts
-
getBlockEntityNbtForSaving
@Nullable public CompoundTag getBlockEntityNbtForSaving(BlockPos pos, HolderLookup.Provider registries) - 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
-