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.PackedTicks
Nested classes/interfaces inherited from interface net.minecraft.world.level.BlockGetter
BlockGetter.BlockStepVisitor
-
Field Summary
FieldsFields inherited from class net.minecraft.world.level.chunk.ChunkAccess
blendingData, blockEntities, chunkPos, heightmaps, levelHeightAccessor, NO_FILLED_SECTION, noiseChunk, pendingBlockEntities, postProcessing, sections, skyLightSources, upgradeData
Fields inherited from interface net.minecraft.world.level.BlockGetter
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addReferenceForStructure
(Structure p_223402_, long p_223403_) boolean
void
fillBiomesFromNoise
(BiomeResolver p_187923_, Climate.Sampler p_187924_) 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_) getFluidState
(BlockPos p_62736_) int
getHeight
(Heightmap.Types p_62702_, int p_62703_, int p_62704_) getNoiseBiome
(int p_204430_, int p_204431_, int p_204432_) getOrCreateHeightmapUnprimed
(Heightmap.Types p_187928_) getPos()
it.unimi.dsi.fastutil.longs.LongSet
getReferencesForStructure
(Structure p_223408_) getSection
(int p_187932_) getStartForStructure
(Structure p_223400_) getTicksForSerialization
(long p_362470_) void
boolean
boolean
void
markPosForPostprocessing
(BlockPos p_62752_) void
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
setBlockEntity
(BlockEntity p_156358_) void
setBlockEntityNbt
(CompoundTag p_62728_) setBlockState
(BlockPos p_62722_, BlockState p_62723_, int p_393912_) void
setHeightmap
(Heightmap.Types p_62706_, long[] p_62707_) void
setLightCorrect
(boolean p_62740_) void
setPersistedStatus
(ChunkStatus p_347629_) void
setStartForStructure
(Structure p_223405_, StructureStart p_223406_) boolean
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, getExistingDataOrNull, getHeight, getHeightmaps, getHighestFilledSectionIndex, getHighestGeneratedStatus, getHighestSectionPosition, getInhabitedTime, getLevel, getListenerRegistry, getMinY, getOrCreateNoiseChunk, getOrCreateOffsetList, getPostProcessing, getUpgradeData, hasAnyStructureReferences, hasAttachments, hasData, hasPrimedHeightmap, incrementInhabitedTime, isOldNoiseGeneration, isSectionEmpty, isUpgrading, isYSpaceEmpty, readAttachmentsFromNBT, removeData, setBlockState, 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, 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
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, 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
-
getSection
- Overrides:
getSection
in classChunkAccess
-
setBlockState
- Overrides:
setBlockState
in classProtoChunk
-
setBlockEntity
- Overrides:
setBlockEntity
in classProtoChunk
-
addEntity
- Overrides:
addEntity
in classProtoChunk
-
setPersistedStatus
- Overrides:
setPersistedStatus
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
-
markUnsaved
public void markUnsaved()- Overrides:
markUnsaved
in classChunkAccess
-
canBeSerialized
public boolean canBeSerialized()- Overrides:
canBeSerialized
in classChunkAccess
-
tryMarkSaved
public boolean tryMarkSaved()- Overrides:
tryMarkSaved
in classChunkAccess
-
isUnsaved
public boolean isUnsaved()- Overrides:
isUnsaved
in classChunkAccess
-
getPersistedStatus
- Overrides:
getPersistedStatus
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(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
-
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
-