Package net.minecraft.world.level.chunk
Class ImposterProtoChunk
java.lang.Object
net.minecraft.world.level.chunk.ChunkAccess
net.minecraft.world.level.chunk.ProtoChunk
net.minecraft.world.level.chunk.ImposterProtoChunk
- All Implemented Interfaces:
BiomeManager.NoiseBiomeSource
,BlockGetter
,LightChunk
,StructureAccess
,LevelHeightAccessor
,IAttachmentHolder
,IBlockGetterExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.chunk.ChunkAccess
ChunkAccess.TicksToSave
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addReferenceForStructure
(Structure p_223402_, long p_223403_) void
fillBiomesFromNoise
(BiomeResolver p_187923_, Climate.Sampler p_187924_) void
findBlocks
(BiPredicate<BlockState, BlockPos> p_285465_, BiConsumer<BlockPos, BlockState> p_285030_) void
findBlocks
(Predicate<BlockState> p_285465_, BiConsumer<BlockPos, BlockState> p_285061_) void
findBlocks
(Predicate<BlockState> p_285465_, BiPredicate<BlockState, BlockPos> fineFilter, BiConsumer<BlockPos, BlockState> p_285030_) private Heightmap.Types
fixType
(Heightmap.Types p_62742_) getBlockEntity
(BlockPos p_62744_) getBlockEntityNbt
(BlockPos p_62757_) getBlockEntityNbtForSaving
(BlockPos p_62760_, HolderLookup.Provider p_323691_) getBlockState
(BlockPos p_62749_) getCarvingMask
(GenerationStep.Carving p_187926_) getFluidState
(BlockPos p_62736_) int
getHeight
(Heightmap.Types p_62702_, int p_62703_, int p_62704_) int
getNoiseBiome
(int p_204430_, int p_204431_, int p_204432_) getOrCreateCarvingMask
(GenerationStep.Carving p_187934_) getOrCreateHeightmapUnprimed
(Heightmap.Types p_187928_) getPos()
it.unimi.dsi.fastutil.longs.LongSet
getReferencesForStructure
(Structure p_223408_) getSection
(int p_187932_) getStartForStructure
(Structure p_223400_) void
boolean
boolean
void
markPosForPostprocessing
(BlockPos p_62752_) void
removeBlockEntity
(BlockPos p_62747_) void
setAllReferences
(Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> p_62738_) void
setAllStarts
(Map<Structure, StructureStart> p_62726_) void
setBlendingData
(BlendingData p_187930_) void
setBlockEntity
(BlockEntity p_156358_) void
setBlockEntityNbt
(CompoundTag p_62728_) setBlockState
(BlockPos p_62722_, BlockState p_62723_, boolean p_62724_) void
setHeightmap
(Heightmap.Types p_62706_, long[] p_62707_) void
setLightCorrect
(boolean p_62740_) void
setStartForStructure
(Structure p_223405_, StructureStart p_223406_) void
setStatus
(ChunkStatus p_330969_) void
setUnsaved
(boolean p_62730_) Methods inherited from class net.minecraft.world.level.chunk.ProtoChunk
addEntity, addPackedPostProcess, getBelowZeroRetrogen, getBlockEntities, getBlockEntityNbts, getEntities, getHeightAccessorForGeneration, packOffsetCoordinates, setBelowZeroRetrogen, setCarvingMask, setLightEngine, unpackBlockTicks, unpackFluidTicks, unpackOffsetCoordinates
Methods inherited from class net.minecraft.world.level.chunk.ChunkAccess
carverBiome, findBlockLightSources, getBlockEntitiesPos, getData, getExistingData, getHeight, getHeightmaps, getHighestFilledSectionIndex, getHighestGeneratedStatus, getHighestSectionPosition, getInhabitedTime, getLevel, getListenerRegistry, getMinBuildHeight, getOrCreateNoiseChunk, getOrCreateOffsetList, getPostProcessing, getUpgradeData, hasAnyStructureReferences, hasAttachments, hasData, hasPrimedHeightmap, incrementInhabitedTime, isOldNoiseGeneration, isUpgrading, isYSpaceEmpty, readAttachmentsFromNBT, removeData, setData, setInhabitedTime, 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, isBlockInLine
Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, 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
-
wrapped
-
allowWrites
private final boolean allowWrites
-
-
Constructor Details
-
ImposterProtoChunk
-
-
Method Details
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceBlockGetter
- Overrides:
getBlockEntity
in classProtoChunk
-
getBlockState
- Specified by:
getBlockState
in interfaceBlockGetter
- Overrides:
getBlockState
in classProtoChunk
-
getFluidState
- Specified by:
getFluidState
in interfaceBlockGetter
- Overrides:
getFluidState
in classProtoChunk
-
getMaxLightLevel
public int getMaxLightLevel() -
getSection
- Overrides:
getSection
in classChunkAccess
-
setBlockState
- Overrides:
setBlockState
in classProtoChunk
-
setBlockEntity
- Overrides:
setBlockEntity
in classProtoChunk
-
addEntity
- Overrides:
addEntity
in classProtoChunk
-
setStatus
- Overrides:
setStatus
in classProtoChunk
-
getSections
- Overrides:
getSections
in classChunkAccess
-
setHeightmap
- Overrides:
setHeightmap
in classChunkAccess
-
fixType
-
getOrCreateHeightmapUnprimed
- Overrides:
getOrCreateHeightmapUnprimed
in classChunkAccess
-
getHeight
- Overrides:
getHeight
in classChunkAccess
-
getNoiseBiome
- Specified by:
getNoiseBiome
in interfaceBiomeManager.NoiseBiomeSource
- Overrides:
getNoiseBiome
in classProtoChunk
-
getPos
- Overrides:
getPos
in classChunkAccess
-
getStartForStructure
- Specified by:
getStartForStructure
in interfaceStructureAccess
- Overrides:
getStartForStructure
in classChunkAccess
-
setStartForStructure
- Specified by:
setStartForStructure
in interfaceStructureAccess
- Overrides:
setStartForStructure
in classProtoChunk
-
getAllStarts
- Overrides:
getAllStarts
in classChunkAccess
-
setAllStarts
- Overrides:
setAllStarts
in classChunkAccess
-
getReferencesForStructure
- Specified by:
getReferencesForStructure
in interfaceStructureAccess
- Overrides:
getReferencesForStructure
in classChunkAccess
-
addReferenceForStructure
- Specified by:
addReferenceForStructure
in interfaceStructureAccess
- Overrides:
addReferenceForStructure
in classChunkAccess
-
getAllReferences
- Specified by:
getAllReferences
in interfaceStructureAccess
- Overrides:
getAllReferences
in classChunkAccess
-
setAllReferences
- Specified by:
setAllReferences
in interfaceStructureAccess
- Overrides:
setAllReferences
in classChunkAccess
-
setUnsaved
public void setUnsaved(boolean p_62730_) - Overrides:
setUnsaved
in classChunkAccess
-
isUnsaved
public boolean isUnsaved()- Overrides:
isUnsaved
in classChunkAccess
-
getStatus
- Overrides:
getStatus
in classProtoChunk
-
removeBlockEntity
- Overrides:
removeBlockEntity
in classProtoChunk
-
markPosForPostprocessing
- Overrides:
markPosForPostprocessing
in classProtoChunk
-
setBlockEntityNbt
- Overrides:
setBlockEntityNbt
in classChunkAccess
-
getBlockEntityNbt
- Overrides:
getBlockEntityNbt
in classChunkAccess
-
getBlockEntityNbtForSaving
@Nullable public CompoundTag getBlockEntityNbtForSaving(BlockPos p_62760_, HolderLookup.Provider p_323691_) - Overrides:
getBlockEntityNbtForSaving
in classProtoChunk
-
findBlocks
- Overrides:
findBlocks
in classChunkAccess
-
findBlocks
public void findBlocks(BiPredicate<BlockState, BlockPos> p_285465_, BiConsumer<BlockPos, BlockState> p_285030_) - Overrides:
findBlocks
in classChunkAccess
-
findBlocks
public void findBlocks(Predicate<BlockState> p_285465_, BiPredicate<BlockState, BlockPos> fineFilter, BiConsumer<BlockPos, BlockState> p_285030_) - Overrides:
findBlocks
in classChunkAccess
-
getBlockTicks
- Overrides:
getBlockTicks
in classProtoChunk
-
getFluidTicks
- Overrides:
getFluidTicks
in classProtoChunk
-
getTicksForSerialization
- Overrides:
getTicksForSerialization
in classProtoChunk
-
getBlendingData
- Overrides:
getBlendingData
in classChunkAccess
-
setBlendingData
- Overrides:
setBlendingData
in classChunkAccess
-
getCarvingMask
- Overrides:
getCarvingMask
in classProtoChunk
-
getOrCreateCarvingMask
- Overrides:
getOrCreateCarvingMask
in classProtoChunk
-
getWrapped
-
isLightCorrect
public boolean isLightCorrect()- Overrides:
isLightCorrect
in classChunkAccess
-
setLightCorrect
public void setLightCorrect(boolean p_62740_) - Overrides:
setLightCorrect
in classChunkAccess
-
fillBiomesFromNoise
- Overrides:
fillBiomesFromNoise
in classChunkAccess
-
initializeLightSources
public void initializeLightSources()- Overrides:
initializeLightSources
in classChunkAccess
-
getSkyLightSources
- Specified by:
getSkyLightSources
in interfaceLightChunk
- Overrides:
getSkyLightSources
in classChunkAccess
-
getAttachmentHolder
- Overrides:
getAttachmentHolder
in classChunkAccess
-