Package net.minecraft.world.chunk
Class ChunkPrimer
java.lang.Object
net.minecraft.world.chunk.ChunkPrimer
- All Implemented Interfaces:
IChunk,IBlockReader,IStructureReader
- Direct Known Subclasses:
ChunkPrimerWrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BiomeContainerprivate final Map<BlockPos,TileEntity> private final Map<BlockPos,CompoundNBT> private final ChunkPrimerTickList<Block>private final Map<GenerationStage.Carving,BitSet> private final ChunkPosprivate final List<CompoundNBT>private final Map<Heightmap.Type,Heightmap> private longprivate booleanprivate booleanprivate WorldLightManagerprivate final ChunkPrimerTickList<Fluid>private static final org.apache.logging.log4j.Loggerprivate final it.unimi.dsi.fastutil.shorts.ShortList[]private final ChunkSection[]private ChunkStatusprivate final Map<Structure<?>,StructureStart<?>> private final UpgradeData -
Constructor Summary
ConstructorsConstructorDescriptionChunkPrimer(ChunkPos p_i48700_1_, UpgradeData p_i48700_2_) ChunkPrimer(ChunkPos p_i49941_1_, UpgradeData p_i49941_2_, ChunkSection[] p_i49941_3_, ChunkPrimerTickList<Block> p_i49941_4_, ChunkPrimerTickList<Fluid> p_i49941_5_) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddEntity(CompoundNBT p_201626_1_) voidaddLight(short p_201646_1_, int p_201646_2_) voidvoidaddPackedPostProcess(short p_201636_1_, int p_201636_2_) voidaddReferenceForFeature(Structure<?> p_230343_1_, long p_230343_2_) Map<Structure<?>,StructureStart<?>> getBlockEntity(BlockPos p_175625_1_) getBlockEntityNbt(BlockPos p_201579_1_) getBlockEntityNbtForSaving(BlockPos p_223134_1_) getBlockState(BlockPos p_180495_1_) getCarvingMask(GenerationStage.Carving p_205749_1_) getFluidState(BlockPos p_204610_1_) intgetHeight(Heightmap.Type p_201576_1_, int p_201576_2_, int p_201576_3_) longgetOrCreateCarvingMask(GenerationStage.Carving p_230345_1_) getOrCreateHeightmapUnprimed(Heightmap.Type p_217303_1_) getOrCreateSection(int p_217332_1_) it.unimi.dsi.fastutil.shorts.ShortList[]getPos()it.unimi.dsi.fastutil.shorts.ShortList[]it.unimi.dsi.fastutil.longs.LongSetgetReferencesForFeature(Structure<?> p_230346_1_) getStartForFeature(Structure<?> p_230342_1_) booleanbooleanvoidmarkPosForPostprocessing(BlockPos p_201594_1_) static shortpackOffsetCoordinates(BlockPos p_201651_0_) voidremoveBlockEntity(BlockPos p_177425_1_) voidsetAllReferences(Map<Structure<?>, it.unimi.dsi.fastutil.longs.LongSet> p_201606_1_) voidsetAllStarts(Map<Structure<?>, StructureStart<?>> p_201612_1_) voidsetBiomes(BiomeContainer p_225548_1_) voidsetBlockEntity(BlockPos p_177426_1_, TileEntity p_177426_2_) voidsetBlockEntityNbt(CompoundNBT p_201591_1_) setBlockState(BlockPos p_177436_1_, BlockState p_177436_2_, boolean p_177436_3_) voidsetCarvingMask(GenerationStage.Carving p_205767_1_, BitSet p_205767_2_) voidsetHeightmap(Heightmap.Type p_201607_1_, long[] p_201607_2_) voidsetInhabitedTime(long p_177415_1_) voidsetLastSaveTime(long p_177432_1_) voidsetLightCorrect(boolean p_217305_1_) voidsetLightEngine(WorldLightManager p_217306_1_) voidsetStartForFeature(Structure<?> p_230344_1_, StructureStart<?> p_230344_2_) voidsetStatus(ChunkStatus p_201574_1_) voidsetUnsaved(boolean p_177427_1_) static BlockPosunpackOffsetCoordinates(short p_201635_0_, int p_201635_1_, ChunkPos p_201635_2_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.IBlockReader
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxBuildHeight, getMaxLightLevelMethods inherited from interface net.minecraft.world.chunk.IChunk
getHighestSection, getHighestSectionPosition, getWorldForge, isYSpaceEmpty
-
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
-
inhabitedTime
private long inhabitedTime -
carvingMasks
-
isLightCorrect
private volatile boolean isLightCorrect
-
-
Constructor Details
-
ChunkPrimer
-
ChunkPrimer
public ChunkPrimer(ChunkPos p_i49941_1_, UpgradeData p_i49941_2_, @Nullable ChunkSection[] p_i49941_3_, ChunkPrimerTickList<Block> p_i49941_4_, ChunkPrimerTickList<Fluid> p_i49941_5_)
-
-
Method Details
-
getBlockState
- Specified by:
getBlockStatein interfaceIBlockReader
-
getFluidState
- Specified by:
getFluidStatein interfaceIBlockReader
-
getLights
-
getPackedLights
public it.unimi.dsi.fastutil.shorts.ShortList[] getPackedLights() -
addLight
public void addLight(short p_201646_1_, int p_201646_2_) -
addLight
-
setBlockState
@Nullable public BlockState setBlockState(BlockPos p_177436_1_, BlockState p_177436_2_, boolean p_177436_3_) - Specified by:
setBlockStatein interfaceIChunk
-
getOrCreateSection
-
setBlockEntity
- Specified by:
setBlockEntityin interfaceIChunk
-
getBlockEntitiesPos
- Specified by:
getBlockEntitiesPosin interfaceIChunk
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceIBlockReader
-
getBlockEntities
-
addEntity
-
addEntity
-
getEntities
-
setBiomes
-
getBiomes
-
setUnsaved
public void setUnsaved(boolean p_177427_1_) - Specified by:
setUnsavedin interfaceIChunk
-
isUnsaved
public boolean isUnsaved() -
getStatus
-
setStatus
-
getSections
- Specified by:
getSectionsin interfaceIChunk
-
getLightEngine
-
getHeightmaps
- Specified by:
getHeightmapsin interfaceIChunk
-
setHeightmap
- Specified by:
setHeightmapin interfaceIChunk
-
getOrCreateHeightmapUnprimed
- Specified by:
getOrCreateHeightmapUnprimedin interfaceIChunk
-
getHeight
-
getPos
-
setLastSaveTime
public void setLastSaveTime(long p_177432_1_) - Specified by:
setLastSaveTimein interfaceIChunk
-
getStartForFeature
- Specified by:
getStartForFeaturein interfaceIStructureReader
-
setStartForFeature
- Specified by:
setStartForFeaturein interfaceIStructureReader
-
getAllStarts
- Specified by:
getAllStartsin interfaceIChunk
-
setAllStarts
- Specified by:
setAllStartsin interfaceIChunk
-
getReferencesForFeature
- Specified by:
getReferencesForFeaturein interfaceIStructureReader
-
addReferenceForFeature
- Specified by:
addReferenceForFeaturein interfaceIStructureReader
-
getAllReferences
- Specified by:
getAllReferencesin interfaceIStructureReader
-
setAllReferences
- Specified by:
setAllReferencesin interfaceIStructureReader
-
packOffsetCoordinates
-
unpackOffsetCoordinates
-
markPosForPostprocessing
- Specified by:
markPosForPostprocessingin interfaceIChunk
-
getPostProcessing
public it.unimi.dsi.fastutil.shorts.ShortList[] getPostProcessing()- Specified by:
getPostProcessingin interfaceIChunk
-
addPackedPostProcess
public void addPackedPostProcess(short p_201636_1_, int p_201636_2_) - Specified by:
addPackedPostProcessin interfaceIChunk
-
getBlockTicks
- Specified by:
getBlockTicksin interfaceIChunk
-
getLiquidTicks
- Specified by:
getLiquidTicksin interfaceIChunk
-
getUpgradeData
- Specified by:
getUpgradeDatain interfaceIChunk
-
setInhabitedTime
public void setInhabitedTime(long p_177415_1_) - Specified by:
setInhabitedTimein interfaceIChunk
-
getInhabitedTime
public long getInhabitedTime()- Specified by:
getInhabitedTimein interfaceIChunk
-
setBlockEntityNbt
- Specified by:
setBlockEntityNbtin interfaceIChunk
-
getBlockEntityNbts
-
getBlockEntityNbt
- Specified by:
getBlockEntityNbtin interfaceIChunk
-
getBlockEntityNbtForSaving
- Specified by:
getBlockEntityNbtForSavingin interfaceIChunk
-
removeBlockEntity
- Specified by:
removeBlockEntityin interfaceIChunk
-
getCarvingMask
-
getOrCreateCarvingMask
-
setCarvingMask
-
setLightEngine
-
isLightCorrect
public boolean isLightCorrect()- Specified by:
isLightCorrectin interfaceIChunk
-
setLightCorrect
public void setLightCorrect(boolean p_217305_1_) - Specified by:
setLightCorrectin interfaceIChunk
-