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 BelowZeroRetrogen
private final ProtoChunkTicks
<Block> private final Map
<GenerationStep.Carving, CarvingMask> private final List
<CompoundTag> private final ProtoChunkTicks
<Fluid> private LevelLightEngine
private ChunkStatus
Fields 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 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 TypeMethodDescriptionvoid
addEntity
(CompoundTag pTag) void
void
addPackedPostProcess
(short pPackedPosition, int pIndex) getBlockEntity
(BlockPos pPos) getBlockEntityNbtForSaving
(BlockPos pPos, HolderLookup.Provider pRegistries) getBlockState
(BlockPos pPos) getFluidState
(BlockPos pPos) getNoiseBiome
(int pX, int pY, int pZ) Gets the biome at the given quart positions.void
static short
void
removeBlockEntity
(BlockPos pPos) void
setBelowZeroRetrogen
(BelowZeroRetrogen pBelowZeroRetrogen) void
setBlockEntity
(BlockEntity pBlockEntity) setBlockState
(BlockPos pPos, BlockState pState, boolean pIsMoving) void
setCarvingMask
(GenerationStep.Carving pStep, CarvingMask pCarvingMask) void
setLightEngine
(LevelLightEngine pLightEngine) void
setPersistedStatus
(ChunkStatus pStatus) void
setStartForStructure
(Structure pStructure, StructureStart pStructureStart) static BlockPos
unpackOffsetCoordinates
(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, 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, writeAttachmentsToNBT
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLine
Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelData
Methods 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 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:
getBlockTicks
in classChunkAccess
-
getFluidTicks
- Specified by:
getFluidTicks
in classChunkAccess
-
getTicksForSerialization
- Specified by:
getTicksForSerialization
in classChunkAccess
-
getBlockState
-
getFluidState
-
setBlockState
- Specified by:
setBlockState
in classChunkAccess
-
setBlockEntity
- Specified by:
setBlockEntity
in classChunkAccess
-
getBlockEntity
-
getBlockEntities
-
addEntity
-
addEntity
- Specified by:
addEntity
in classChunkAccess
-
setStartForStructure
- Specified by:
setStartForStructure
in interfaceStructureAccess
- Overrides:
setStartForStructure
in classChunkAccess
-
getEntities
-
getPersistedStatus
- Specified by:
getPersistedStatus
in 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:
getNoiseBiome
in interfaceBiomeManager.NoiseBiomeSource
- Overrides:
getNoiseBiome
in classChunkAccess
-
packOffsetCoordinates
-
unpackOffsetCoordinates
-
markPosForPostprocessing
- Overrides:
markPosForPostprocessing
in classChunkAccess
-
addPackedPostProcess
public void addPackedPostProcess(short pPackedPosition, int pIndex) - Overrides:
addPackedPostProcess
in classChunkAccess
-
getBlockEntityNbts
-
getBlockEntityNbtForSaving
@Nullable public CompoundTag getBlockEntityNbtForSaving(BlockPos pPos, HolderLookup.Provider pRegistries) - Specified by:
getBlockEntityNbtForSaving
in classChunkAccess
-
removeBlockEntity
- Specified by:
removeBlockEntity
in classChunkAccess
-
getCarvingMask
-
getOrCreateCarvingMask
-
setCarvingMask
-
setLightEngine
-
setBelowZeroRetrogen
-
getBelowZeroRetrogen
- Overrides:
getBelowZeroRetrogen
in classChunkAccess
-
unpackTicks
-
unpackBlockTicks
-
unpackFluidTicks
-
getHeightAccessorForGeneration
- Overrides:
getHeightAccessorForGeneration
in classChunkAccess
-