Package net.minecraft.world.level.chunk
Class ProtoChunk
java.lang.Object
net.minecraft.world.level.chunk.ProtoChunk
- All Implemented Interfaces:
BlockGetter,ChunkAccess,FeatureAccess,LevelHeightAccessor
- Direct Known Subclasses:
ImposterProtoChunk
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChunkBiomeContainerprivate Map<BlockPos,BlockEntity>private Map<BlockPos,CompoundTag>private ProtoTickList<Block>private Map<GenerationStep.Carving,BitSet>private ChunkPosprivate List<CompoundTag>private Map<Heightmap.Types,Heightmap>private longprivate booleanprivate booleanprivate LevelHeightAccessorprivate LevelLightEngineprivate ProtoTickList<Fluid>private static org.apache.logging.log4j.Loggerprivate it.unimi.dsi.fastutil.shorts.ShortList[]private LevelChunkSection[]private ChunkStatusprivate Map<StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet>private Map<StructureFeature<?>,StructureStart<?>>private UpgradeData -
Constructor Summary
ConstructorsConstructorDescriptionProtoChunk(ChunkPos p_156481_, UpgradeData p_156482_, LevelChunkSection[] p_156483_, ProtoTickList<Block> p_156484_, ProtoTickList<Fluid> p_156485_, LevelHeightAccessor p_156486_)ProtoChunk(ChunkPos p_156477_, UpgradeData p_156478_, LevelHeightAccessor p_156479_) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntity(CompoundTag p_63243_)voidvoidaddLight(short p_63245_, int p_63246_)voidvoidaddPackedPostProcess(short p_63225_, int p_63226_)voidaddReferenceForFeature(StructureFeature<?> p_63204_, long p_63205_)Map<StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet>Map<StructureFeature<?>,StructureStart<?>>getBlockEntity(BlockPos p_63257_)getBlockEntityNbt(BlockPos p_63272_)getBlockEntityNbtForSaving(BlockPos p_63275_)getBlockState(BlockPos p_63264_)getCarvingMask(GenerationStep.Carving p_63188_)getFluidState(BlockPos p_63239_)getHeighestPosition(Heightmap.Types p_156490_)intintgetHeight(Heightmap.Types p_63195_, int p_63196_, int p_63197_)longintgetOrCreateCarvingMask(GenerationStep.Carving p_63235_)getOrCreateHeightmapUnprimed(Heightmap.Types p_63193_)it.unimi.dsi.fastutil.shorts.ShortList[]getPos()it.unimi.dsi.fastutil.shorts.ShortList[]it.unimi.dsi.fastutil.longs.LongSetgetReferencesForFeature(StructureFeature<?> p_63237_)getStartForFeature(StructureFeature<?> p_63202_)booleanbooleanvoidmarkPosForPostprocessing(BlockPos p_63266_)static shortpackOffsetCoordinates(BlockPos p_63281_)voidremoveBlockEntity(BlockPos p_63262_)voidsetAllReferences(Map<StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet> p_63241_)voidsetAllStarts(Map<StructureFeature<?>,StructureStart<?>> p_63221_)voidsetBiomes(ChunkBiomeContainer p_63186_)voidsetBlockEntity(BlockEntity p_156488_)voidsetBlockEntityNbt(CompoundTag p_63223_)setBlockState(BlockPos p_63217_, BlockState p_63218_, boolean p_63219_)voidsetCarvingMask(GenerationStep.Carving p_63190_, BitSet p_63191_)voidsetInhabitedTime(long p_63234_)voidsetLightCorrect(boolean p_63248_)voidsetLightEngine(LevelLightEngine p_63210_)voidsetStartForFeature(StructureFeature<?> p_63207_, StructureStart<?> p_63208_)voidsetStatus(ChunkStatus p_63187_)voidsetUnsaved(boolean p_63232_)static BlockPosunpackOffsetCoordinates(short p_63228_, int p_63229_, ChunkPos p_63230_)Methods 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.minecraft.world.level.chunk.ChunkAccess
getEventDispatcher, getHighestSection, getHighestSectionPosition, getOrCreateSection, getWorldForge, isYSpaceEmpty, setHeightmapMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
chunkPos
-
isDirty
private volatile boolean isDirty -
biomes
-
lightEngine
-
heightmaps
-
status
-
blockEntities
-
blockEntityNbts
-
sections
-
entities
-
lights
-
postProcessing
private final it.unimi.dsi.fastutil.shorts.ShortList[] postProcessing -
structureStarts
-
structuresRefences
-
upgradeData
-
blockTicks
-
liquidTicks
-
levelHeightAccessor
-
inhabitedTime
private long inhabitedTime -
carvingMasks
-
isLightCorrect
private volatile boolean isLightCorrect
-
-
Constructor Details
-
ProtoChunk
-
ProtoChunk
public ProtoChunk(ChunkPos p_156481_, UpgradeData p_156482_, @Nullable LevelChunkSection[] p_156483_, ProtoTickList<Block> p_156484_, ProtoTickList<Fluid> p_156485_, LevelHeightAccessor p_156486_)
-
-
Method Details
-
getBlockState
- Specified by:
getBlockStatein interfaceBlockGetter
-
getFluidState
- Specified by:
getFluidStatein interfaceBlockGetter
-
getLights
- Specified by:
getLightsin interfaceChunkAccess
-
getPackedLights
public it.unimi.dsi.fastutil.shorts.ShortList[] getPackedLights() -
addLight
public void addLight(short p_63245_, int p_63246_) -
addLight
-
setBlockState
@Nullable public BlockState setBlockState(BlockPos p_63217_, BlockState p_63218_, boolean p_63219_)- Specified by:
setBlockStatein interfaceChunkAccess
-
setBlockEntity
- Specified by:
setBlockEntityin interfaceChunkAccess
-
getBlockEntitiesPos
- Specified by:
getBlockEntitiesPosin interfaceChunkAccess
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceBlockGetter
-
getBlockEntities
-
addEntity
-
addEntity
- Specified by:
addEntityin interfaceChunkAccess
-
getEntities
-
setBiomes
-
getBiomes
- Specified by:
getBiomesin interfaceChunkAccess
-
setUnsaved
public void setUnsaved(boolean p_63232_)- Specified by:
setUnsavedin interfaceChunkAccess
-
isUnsaved
public boolean isUnsaved()- Specified by:
isUnsavedin interfaceChunkAccess
-
getStatus
- Specified by:
getStatusin interfaceChunkAccess
-
setStatus
-
getSections
- Specified by:
getSectionsin interfaceChunkAccess
-
getHeightmaps
- Specified by:
getHeightmapsin interfaceChunkAccess
-
getOrCreateHeightmapUnprimed
- Specified by:
getOrCreateHeightmapUnprimedin interfaceChunkAccess
-
getHeight
- Specified by:
getHeightin interfaceChunkAccess
-
getHeighestPosition
- Specified by:
getHeighestPositionin interfaceChunkAccess
-
getPos
- Specified by:
getPosin interfaceChunkAccess
-
getStartForFeature
- Specified by:
getStartForFeaturein interfaceFeatureAccess
-
setStartForFeature
- Specified by:
setStartForFeaturein interfaceFeatureAccess
-
getAllStarts
- Specified by:
getAllStartsin interfaceChunkAccess
-
setAllStarts
- Specified by:
setAllStartsin interfaceChunkAccess
-
getReferencesForFeature
- Specified by:
getReferencesForFeaturein interfaceFeatureAccess
-
addReferenceForFeature
- Specified by:
addReferenceForFeaturein interfaceFeatureAccess
-
getAllReferences
- Specified by:
getAllReferencesin interfaceFeatureAccess
-
setAllReferences
public void setAllReferences(Map<StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet> p_63241_)- Specified by:
setAllReferencesin interfaceFeatureAccess
-
packOffsetCoordinates
-
unpackOffsetCoordinates
-
markPosForPostprocessing
- Specified by:
markPosForPostprocessingin interfaceChunkAccess
-
getPostProcessing
public it.unimi.dsi.fastutil.shorts.ShortList[] getPostProcessing()- Specified by:
getPostProcessingin interfaceChunkAccess
-
addPackedPostProcess
public void addPackedPostProcess(short p_63225_, int p_63226_)- Specified by:
addPackedPostProcessin interfaceChunkAccess
-
getBlockTicks
- Specified by:
getBlockTicksin interfaceChunkAccess
-
getLiquidTicks
- Specified by:
getLiquidTicksin interfaceChunkAccess
-
getUpgradeData
- Specified by:
getUpgradeDatain interfaceChunkAccess
-
setInhabitedTime
public void setInhabitedTime(long p_63234_)- Specified by:
setInhabitedTimein interfaceChunkAccess
-
getInhabitedTime
public long getInhabitedTime()- Specified by:
getInhabitedTimein interfaceChunkAccess
-
setBlockEntityNbt
- Specified by:
setBlockEntityNbtin interfaceChunkAccess
-
getBlockEntityNbts
-
getBlockEntityNbt
- Specified by:
getBlockEntityNbtin interfaceChunkAccess
-
getBlockEntityNbtForSaving
- Specified by:
getBlockEntityNbtForSavingin interfaceChunkAccess
-
removeBlockEntity
- Specified by:
removeBlockEntityin interfaceChunkAccess
-
getCarvingMask
-
getOrCreateCarvingMask
-
setCarvingMask
-
setLightEngine
-
isLightCorrect
public boolean isLightCorrect()- Specified by:
isLightCorrectin interfaceChunkAccess
-
setLightCorrect
public void setLightCorrect(boolean p_63248_)- Specified by:
setLightCorrectin interfaceChunkAccess
-
getMinBuildHeight
public int getMinBuildHeight()- Specified by:
getMinBuildHeightin interfaceLevelHeightAccessor
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceLevelHeightAccessor
-