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
Modifier and TypeFieldDescriptionprivate BiomeContainer
private final Map<BlockPos,
TileEntity> private final Map<BlockPos,
CompoundNBT> private final ChunkPrimerTickList<Block>
private final Map<GenerationStage.Carving,
BitSet> private final ChunkPos
private final List<CompoundNBT>
private final Map<Heightmap.Type,
Heightmap> private long
private boolean
private boolean
private WorldLightManager
private final ChunkPrimerTickList<Fluid>
private static final org.apache.logging.log4j.Logger
private final it.unimi.dsi.fastutil.shorts.ShortList[]
private final ChunkSection[]
private ChunkStatus
private final Map<Structure<?>,
StructureStart<?>> private final UpgradeData
-
Constructor Summary
ConstructorDescriptionChunkPrimer
(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 TypeMethodDescriptionvoid
void
addEntity
(CompoundNBT p_201626_1_) void
addLight
(short p_201646_1_, int p_201646_2_) void
void
addPackedPostProcess
(short p_201636_1_, int p_201636_2_) void
addReferenceForFeature
(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_) int
getHeight
(Heightmap.Type p_201576_1_, int p_201576_2_, int p_201576_3_) long
getOrCreateCarvingMask
(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.LongSet
getReferencesForFeature
(Structure<?> p_230346_1_) getStartForFeature
(Structure<?> p_230342_1_) boolean
boolean
void
markPosForPostprocessing
(BlockPos p_201594_1_) static short
packOffsetCoordinates
(BlockPos p_201651_0_) void
removeBlockEntity
(BlockPos p_177425_1_) void
setAllReferences
(Map<Structure<?>, it.unimi.dsi.fastutil.longs.LongSet> p_201606_1_) void
setAllStarts
(Map<Structure<?>, StructureStart<?>> p_201612_1_) void
setBiomes
(BiomeContainer p_225548_1_) void
setBlockEntity
(BlockPos p_177426_1_, TileEntity p_177426_2_) void
setBlockEntityNbt
(CompoundNBT p_201591_1_) setBlockState
(BlockPos p_177436_1_, BlockState p_177436_2_, boolean p_177436_3_) void
setCarvingMask
(GenerationStage.Carving p_205767_1_, BitSet p_205767_2_) void
setHeightmap
(Heightmap.Type p_201607_1_, long[] p_201607_2_) void
setInhabitedTime
(long p_177415_1_) void
setLastSaveTime
(long p_177432_1_) void
setLightCorrect
(boolean p_217305_1_) void
setLightEngine
(WorldLightManager p_217306_1_) void
setStartForFeature
(Structure<?> p_230344_1_, StructureStart<?> p_230344_2_) void
setStatus
(ChunkStatus p_201574_1_) void
setUnsaved
(boolean p_177427_1_) static BlockPos
unpackOffsetCoordinates
(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, wait
Methods inherited from interface net.minecraft.world.IBlockReader
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxBuildHeight, getMaxLightLevel
Methods 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:
getBlockState
in interfaceIBlockReader
-
getFluidState
- Specified by:
getFluidState
in 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:
setBlockState
in interfaceIChunk
-
getOrCreateSection
-
setBlockEntity
- Specified by:
setBlockEntity
in interfaceIChunk
-
getBlockEntitiesPos
- Specified by:
getBlockEntitiesPos
in interfaceIChunk
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceIBlockReader
-
getBlockEntities
-
addEntity
-
addEntity
-
getEntities
-
setBiomes
-
getBiomes
-
setUnsaved
public void setUnsaved(boolean p_177427_1_) - Specified by:
setUnsaved
in interfaceIChunk
-
isUnsaved
public boolean isUnsaved() -
getStatus
-
setStatus
-
getSections
- Specified by:
getSections
in interfaceIChunk
-
getLightEngine
-
getHeightmaps
- Specified by:
getHeightmaps
in interfaceIChunk
-
setHeightmap
- Specified by:
setHeightmap
in interfaceIChunk
-
getOrCreateHeightmapUnprimed
- Specified by:
getOrCreateHeightmapUnprimed
in interfaceIChunk
-
getHeight
-
getPos
-
setLastSaveTime
public void setLastSaveTime(long p_177432_1_) - Specified by:
setLastSaveTime
in interfaceIChunk
-
getStartForFeature
- Specified by:
getStartForFeature
in interfaceIStructureReader
-
setStartForFeature
- Specified by:
setStartForFeature
in interfaceIStructureReader
-
getAllStarts
- Specified by:
getAllStarts
in interfaceIChunk
-
setAllStarts
- Specified by:
setAllStarts
in interfaceIChunk
-
getReferencesForFeature
- Specified by:
getReferencesForFeature
in interfaceIStructureReader
-
addReferenceForFeature
- Specified by:
addReferenceForFeature
in interfaceIStructureReader
-
getAllReferences
- Specified by:
getAllReferences
in interfaceIStructureReader
-
setAllReferences
- Specified by:
setAllReferences
in interfaceIStructureReader
-
packOffsetCoordinates
-
unpackOffsetCoordinates
-
markPosForPostprocessing
- Specified by:
markPosForPostprocessing
in interfaceIChunk
-
getPostProcessing
public it.unimi.dsi.fastutil.shorts.ShortList[] getPostProcessing()- Specified by:
getPostProcessing
in interfaceIChunk
-
addPackedPostProcess
public void addPackedPostProcess(short p_201636_1_, int p_201636_2_) - Specified by:
addPackedPostProcess
in interfaceIChunk
-
getBlockTicks
- Specified by:
getBlockTicks
in interfaceIChunk
-
getLiquidTicks
- Specified by:
getLiquidTicks
in interfaceIChunk
-
getUpgradeData
- Specified by:
getUpgradeData
in interfaceIChunk
-
setInhabitedTime
public void setInhabitedTime(long p_177415_1_) - Specified by:
setInhabitedTime
in interfaceIChunk
-
getInhabitedTime
public long getInhabitedTime()- Specified by:
getInhabitedTime
in interfaceIChunk
-
setBlockEntityNbt
- Specified by:
setBlockEntityNbt
in interfaceIChunk
-
getBlockEntityNbts
-
getBlockEntityNbt
- Specified by:
getBlockEntityNbt
in interfaceIChunk
-
getBlockEntityNbtForSaving
- Specified by:
getBlockEntityNbtForSaving
in interfaceIChunk
-
removeBlockEntity
- Specified by:
removeBlockEntity
in interfaceIChunk
-
getCarvingMask
-
getOrCreateCarvingMask
-
setCarvingMask
-
setLightEngine
-
isLightCorrect
public boolean isLightCorrect()- Specified by:
isLightCorrect
in interfaceIChunk
-
setLightCorrect
public void setLightCorrect(boolean p_217305_1_) - Specified by:
setLightCorrect
in interfaceIChunk
-