net.minecraft.world.level.chunk

public class ProtoChunk

extends ChunkAccess

All mapped superinterfaces:

BlockGetter, LevelHeightAccessor, BiomeManager$NoiseBiomeSource, StructureAccess

cyc
net.minecraft.world.level.chunk.ProtoChunk
net.minecraft.class_2839
net.minecraft.world.chunk.ProtoChunk
net.minecraft.src.C_2147_
net.minecraft.world.level.chunk.ProtoChunk

Field summary

Modifier and TypeField
private volatile LevelLightEngine
l
lightEngine
field_17105
lightingProvider
f_63151_
private volatile ChunkStatus
m
status
field_12918
status
f_63153_
private final List<CompoundTag>
n
entities
field_12929
entities
f_63157_
private final List<BlockPos>
o
lights
field_12919
lightSources
f_63158_
private final Map<GenerationStep$Carving, CarvingMask>
p
carvingMasks
field_12926
carvingMasks
f_63166_
private BelowZeroRetrogen
q
belowZeroRetrogen
field_35473
belowZeroRetrogen
f_188164_
private final ProtoChunkTicks<Block>
r
blockTicks
field_35474
blockTickScheduler
f_63163_
private final ProtoChunkTicks<Fluid>
s
fluidTicks
field_35475
fluidTickScheduler
f_188165_

Constructor summary

ModifierConstructor
public (ChunkPos pos, UpgradeData upgradeData, LevelHeightAccessor world, Registry<Biome> biomeRegistry, BlendingData blendingData)
public (ChunkPos pos, UpgradeData upgradeData, LevelChunkSection[] sections, ProtoChunkTicks<Block> blockTickScheduler, ProtoChunkTicks<Fluid> fluidTickScheduler, LevelHeightAccessor world, Registry<Biome> biomeRegistry, BlendingData blendingData)

Method summary

Modifier and TypeMethod
public TickContainerAccess<Block>
o()
getBlockTicks()
method_12013()
getBlockTickScheduler()
m_183531_()
public TickContainerAccess<Fluid>
p()
getFluidTicks()
method_12014()
getFluidTickScheduler()
m_183526_()
public ChunkAccess$TicksToSave
q()
getTicksForSerialization()
method_39296()
getTickSchedulers()
m_183568_()
public BlockState
a_(gt arg0)
getBlockState(BlockPos arg0)
method_8320(class_2338 arg0)
getBlockState(BlockPos arg0)
m_8055_(C_4675_ arg0)
public FluidState
b_(gt arg0)
getFluidState(BlockPos arg0)
method_8316(class_2338 arg0)
getFluidState(BlockPos arg0)
m_6425_(C_4675_ arg0)
public Stream<BlockPos>
n()
getLights()
method_12018()
getLightSourcesStream()
m_6267_()
public it.unimi.dsi.fastutil.shorts.ShortList[]
B()
getPackedLights()
method_12296()
getLightSourcesBySection()
m_63291_()
public void
b(short arg0, int arg1)
addLight(short arg0, int arg1)
method_12304(short arg0, int arg1)
addLightSource(short chunkSliceRel, int sectionY)
m_63244_(short p_63246_, int arg1)
public void
j(gt arg0)
addLight(BlockPos arg0)
method_12315(class_2338 arg0)
addLightSource(BlockPos pos)
m_63277_(C_4675_ arg0)
public BlockState
a(gt arg0, cvo arg1, boolean arg2)
setBlockState(BlockPos arg0, BlockState arg1, boolean arg2)
method_12010(class_2338 arg0, class_2680 arg1, boolean arg2)
setBlockState(BlockPos arg0, BlockState arg1, boolean arg2)
m_6978_(C_4675_ p_63218_, C_2064_ p_63219_, boolean arg2)
public void
a(cti arg0)
setBlockEntity(BlockEntity arg0)
method_12007(class_2586 arg0)
setBlockEntity(BlockEntity arg0)
m_142169_(C_1991_ arg0)
public BlockEntity
c_(gt arg0)
getBlockEntity(BlockPos arg0)
method_8321(class_2338 arg0)
getBlockEntity(BlockPos arg0)
m_7702_(C_4675_ arg0)
public Map<BlockPos, BlockEntity>
C()
getBlockEntities()
method_12309()
getBlockEntities()
m_63292_()
public void
b(pj arg0)
addEntity(CompoundTag arg0)
method_12302(class_2487 arg0)
addEntity(NbtCompound entityNbt)
m_63242_(C_4917_ arg0)
public void
a(bbn arg0)
addEntity(Entity arg0)
method_12002(class_1297 arg0)
addEntity(Entity arg0)
m_6286_(C_507_ arg0)
public void
a(dlb arg0, dlj arg1)
setStartForStructure(Structure arg0, StructureStart arg1)
method_12184(class_3195 arg0, class_3449 arg1)
setStructureStart(Structure arg0, StructureStart arg1)
m_213792_(C_213164_ p_223433_, C_2588_ arg1)
public List<CompoundTag>
D()
getEntities()
method_12295()
getEntities()
m_63293_()
public ChunkStatus
j()
getStatus()
method_12009()
getStatus()
m_6415_()
public void
a(cxn arg0)
setStatus(ChunkStatus arg0)
method_12308(class_2806 arg0)
setStatus(ChunkStatus status)
m_7150_(C_2126_ arg0)
public Holder<Biome>
getNoiseBiome(int arg0, int arg1, int arg2)
getNoiseBiome(int arg0, int arg1, int arg2)
method_16359(int arg0, int arg1, int arg2)
getBiomeForNoiseGen(int arg0, int arg1, int arg2)
m_203495_(int p_204451_, int p_204452_, int arg2)
public static short
k(gt arg0)
packOffsetCoordinates(BlockPos arg0)
method_12300(class_2338 arg0)
getPackedSectionRelative(BlockPos pos)
m_63280_(C_4675_ p_63281_)
public static BlockPos
a(short arg0, int arg1, cge arg2)
unpackOffsetCoordinates(short arg0, int arg1, ChunkPos arg2)
method_12314(short arg0, int arg1, class_1923 arg2)
joinBlockPos(short sectionRel, int sectionY, ChunkPos chunkPos)
m_63227_(short p_63228_, int p_63229_, C_1560_ p_63230_)
public void
e(gt arg0)
markPosForPostprocessing(BlockPos arg0)
method_12039(class_2338 arg0)
markBlockForPostProcessing(BlockPos arg0)
m_8113_(C_4675_ arg0)
public void
a(short arg0, int arg1)
addPackedPostProcess(short arg0, int arg1)
method_12029(short arg0, int arg1)
markBlockForPostProcessing(short arg0, int arg1)
m_6561_(short p_63226_, int arg1)
public Map<BlockPos, CompoundTag>
E()
getBlockEntityNbts()
method_12316()
getBlockEntityNbts()
m_63294_()
public CompoundTag
g(gt arg0)
getBlockEntityNbtForSaving(BlockPos arg0)
method_20598(class_2338 arg0)
getPackedBlockEntityNbt(BlockPos arg0)
m_8051_(C_4675_ arg0)
public void
d(gt arg0)
removeBlockEntity(BlockPos arg0)
method_12041(class_2338 arg0)
removeBlockEntity(BlockPos arg0)
m_8114_(C_4675_ arg0)
public CarvingMask
a(dan$a arg0)
getCarvingMask(GenerationStep$Carving arg0)
method_12025(class_2893$class_2894 arg0)
getCarvingMask(GenerationStep$Carver step)
m_183612_(C_2188_ arg0)
public CarvingMask
b(dan$a arg0)
getOrCreateCarvingMask(GenerationStep$Carving arg0)
method_28510(class_2893$class_2894 arg0)
getOrCreateCarvingMask(GenerationStep$Carver step)
m_183613_(C_2188_ arg0)
public void
a(dan$a arg0, cxi arg1)
setCarvingMask(GenerationStep$Carving arg0, CarvingMask arg1)
method_12307(class_2893$class_2894 arg0, class_6643 arg1)
setCarvingMask(GenerationStep$Carver step, CarvingMask carvingMask)
m_188186_(C_2188_ p_188188_, C_182875_ arg1)
public void
a(dpm arg0)
setLightEngine(LevelLightEngine arg0)
method_17032(class_3568 arg0)
setLightingProvider(LightingProvider lightingProvider)
m_63209_(C_2681_ arg0)
public void
a(daf arg0)
setBelowZeroRetrogen(BelowZeroRetrogen arg0)
method_39309(class_6746 arg0)
setBelowZeroRetrogen(BelowZeroRetrogen belowZeroRetrogen)
m_188183_(C_182888_ arg0)
public BelowZeroRetrogen
x()
getBelowZeroRetrogen()
method_39300()
getBelowZeroRetrogen()
m_183376_()
private static <T> LevelChunkTicks<T>
a(dxy<T> arg0)
unpackTicks(ProtoChunkTicks<T> arg0)
method_39310(class_4296<T> arg0)
createProtoTickScheduler(SimpleTickScheduler<T> tickScheduler)
m_188189_(C_183044_<T> p_188190_)
public LevelChunkTicks<Block>
F()
unpackBlockTicks()
method_39307()
getBlockProtoTickScheduler()
m_188181_()
public LevelChunkTicks<Fluid>
G()
unpackFluidTicks()
method_39308()
getFluidProtoTickScheduler()
m_188182_()
public LevelHeightAccessor
z()
getHeightAccessorForGeneration()
method_39460()
getHeightLimitView()
m_183618_()