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 p_188173_, UpgradeData p_188174_, LevelChunkSection[] p_188175_, ProtoChunkTicks<Block> p_188176_, ProtoChunkTicks<Fluid> p_188177_, LevelHeightAccessor p_188178_, Registry<Biome> p_188179_, BlendingData p_188180_) ProtoChunk(ChunkPos p_188167_, UpgradeData p_188168_, LevelHeightAccessor p_188169_, Registry<Biome> p_188170_, BlendingData p_188171_) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntity(CompoundTag p_63243_) voidvoidaddPackedPostProcess(short p_63225_, int p_63226_) getBlockEntity(BlockPos p_63257_) getBlockEntityNbtForSaving(BlockPos p_63275_, HolderLookup.Provider p_324473_) getBlockState(BlockPos p_63264_) getCarvingMask(GenerationStep.Carving p_188185_) getFluidState(BlockPos p_63239_) getNoiseBiome(int p_204450_, int p_204451_, int p_204452_) getOrCreateCarvingMask(GenerationStep.Carving p_188191_) voidmarkPosForPostprocessing(BlockPos p_63266_) static shortpackOffsetCoordinates(BlockPos p_63281_) voidremoveBlockEntity(BlockPos p_63262_) voidsetBelowZeroRetrogen(BelowZeroRetrogen p_188184_) voidsetBlockEntity(BlockEntity p_156488_) setBlockState(BlockPos p_63217_, BlockState p_63218_, boolean p_63219_) voidsetCarvingMask(GenerationStep.Carving p_188187_, CarvingMask p_188188_) voidsetLightEngine(LevelLightEngine p_63210_) voidsetStartForStructure(Structure p_223432_, StructureStart p_223433_) voidsetStatus(ChunkStatus p_330748_) static BlockPosunpackOffsetCoordinates(short p_63228_, int p_63229_, ChunkPos p_63230_) private static <T> LevelChunkTicks<T> unpackTicks(ProtoChunkTicks<T> p_188190_) Methods inherited from class net.minecraft.world.level.chunk.ChunkAccess
addReferenceForStructure, carverBiome, fillBiomesFromNoise, findBlockLightSources, findBlocks, findBlocks, findBlocks, getAllReferences, getAllStarts, getAttachmentHolder, getBlendingData, getBlockEntitiesPos, getBlockEntityNbt, getData, getExistingData, 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, 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, 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 p_188167_, UpgradeData p_188168_, LevelHeightAccessor p_188169_, Registry<Biome> p_188170_, @Nullable BlendingData p_188171_) -
ProtoChunk
public ProtoChunk(ChunkPos p_188173_, UpgradeData p_188174_, @Nullable LevelChunkSection[] p_188175_, ProtoChunkTicks<Block> p_188176_, ProtoChunkTicks<Fluid> p_188177_, LevelHeightAccessor p_188178_, Registry<Biome> p_188179_, @Nullable BlendingData p_188180_)
-
-
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
-
getStatus
- Specified by:
getStatusin classChunkAccess
-
setStatus
-
getNoiseBiome
- Specified by:
getNoiseBiomein interfaceBiomeManager.NoiseBiomeSource- Overrides:
getNoiseBiomein classChunkAccess
-
packOffsetCoordinates
-
unpackOffsetCoordinates
-
markPosForPostprocessing
- Overrides:
markPosForPostprocessingin classChunkAccess
-
addPackedPostProcess
public void addPackedPostProcess(short p_63225_, 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
-