net.minecraft.world.level.chunk

public class ProtoChunk

implements ChunkAccess

cne
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 static final org.apache.logging.log4j.Logger
a
LOGGER
field_12920
LOGGER
f_63147_
private final ChunkPos
b
chunkPos
field_12928
pos
f_63148_
private volatile boolean
c
isDirty
field_12924
shouldSave
f_63149_
private ChunkBiomeContainer
d
biomes
field_20656
biomes
f_63150_
private volatile LevelLightEngine
e
lightEngine
field_17105
lightingProvider
f_63151_
private final Map<Heightmap$Types, Heightmap>
f
heightmaps
field_12912
heightmaps
f_63152_
private volatile ChunkStatus
g
status
field_12918
status
f_63153_
private final Map<BlockPos, BlockEntity>
h
blockEntities
field_12917
blockEntities
f_63154_
private final Map<BlockPos, CompoundTag>
i
blockEntityNbts
field_12927
blockEntityTags
f_63155_
private final LevelChunkSection[]
j
sections
field_12909
sections
f_63156_
private final List<CompoundTag>
k
entities
field_12929
entities
f_63157_
private final List<BlockPos>
l
lights
field_12919
lightSources
f_63158_
private final it.unimi.dsi.fastutil.shorts.ShortList[]
m
postProcessing
field_12921
postProcessingLists
f_63159_
private final Map<StructureFeature<?>, StructureStart<?>>
n
structureStarts
field_12915
structureStarts
f_63160_
private final Map<StructureFeature<?>, it.unimi.dsi.fastutil.longs.LongSet>
o
structuresRefences
field_12930
structureReferences
f_63161_
private final UpgradeData
p
upgradeData
field_12916
upgradeData
f_63162_
private final ProtoTickList<Block>
q
blockTicks
field_12911
blockTickScheduler
f_63163_
private final ProtoTickList<Fluid>
r
liquidTicks
field_12923
fluidTickScheduler
f_63164_
private final LevelHeightAccessor
s
levelHeightAccessor
field_27229
world
f_156475_
private long
t
inhabitedTime
field_12925
inhabitedTime
f_63165_
private final Map<GenerationStep$Carving, BitSet>
u
carvingMasks
field_12926
carvingMasks
f_63166_
private volatile boolean
v
isLightCorrect
field_12914
lightOn
f_63167_

Constructor summary

ModifierConstructor
public (ChunkPos pos, UpgradeData upgradeData, LevelHeightAccessor world)
public (ChunkPos pos, UpgradeData upgradeData, LevelChunkSection[] p_156484_, ProtoTickList<Block> blockTickScheduler, ProtoTickList<Fluid> fluidTickScheduler, LevelHeightAccessor world)

Method summary

Modifier and TypeMethod
public BlockState
a_(gg arg0)
getBlockState(BlockPos arg0)
method_8320(class_2338 arg0)
getBlockState(BlockPos arg0)
m_8055_(C_4675_ arg0)
getType(BlockPosition arg0)
public FluidState
b_(gg arg0)
getFluidState(BlockPos arg0)
method_8316(class_2338 arg0)
getFluidState(BlockPos arg0)
m_6425_(C_4675_ arg0)
getFluid(BlockPosition arg0)
public Stream<BlockPos>
n()
getLights()
method_12018()
getLightSourcesStream()
m_6267_()
public it.unimi.dsi.fastutil.shorts.ShortList[]
x()
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(gg arg0)
addLight(BlockPos arg0)
method_12315(class_2338 arg0)
addLightSource(BlockPos pos)
m_63277_(C_4675_ arg0)
public BlockState
a(gg arg0, cks 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)
setType(BlockPosition arg0, IBlockData arg1, boolean arg2)
public void
a(cip arg0)
setBlockEntity(BlockEntity arg0)
method_12007(class_2586 arg0)
setBlockEntity(BlockEntity arg0)
m_142169_(C_1991_ arg0)
setTileEntity(TileEntity arg0)
public Set<BlockPos>
c()
getBlockEntitiesPos()
method_12021()
getBlockEntityPositions()
m_5928_()
public BlockEntity
c_(gg arg0)
getBlockEntity(BlockPos arg0)
method_8321(class_2338 arg0)
getBlockEntity(BlockPos arg0)
m_7702_(C_4675_ arg0)
getTileEntity(BlockPosition arg0)
public Map<BlockPos, BlockEntity>
y()
getBlockEntities()
method_12309()
getBlockEntities()
m_63292_()
public void
b(na arg0)
addEntity(CompoundTag arg0)
method_12302(class_2487 arg0)
addEntity(NbtCompound entityTag)
m_63242_(C_4917_ arg0)
public void
a(atf arg0)
addEntity(Entity arg0)
method_12002(class_1297 arg0)
addEntity(Entity arg0)
m_6286_(C_507_ arg0)
public List<CompoundTag>
z()
getEntities()
method_12295()
getEntities()
m_63293_()
public void
a(cmm arg0)
setBiomes(ChunkBiomeContainer arg0)
method_22405(class_4548 arg0)
setBiomes(BiomeArray biomes)
m_7329_(C_2117_ arg0)
public ChunkBiomeContainer
h()
getBiomes()
method_12036()
getBiomeArray()
m_6221_()
getBiomeIndex()
public void
a(boolean arg0)
setUnsaved(boolean arg0)
method_12008(boolean arg0)
setShouldSave(boolean arg0)
m_8092_(boolean arg0)
setNeedsSaving(boolean arg0)
public boolean
i()
isUnsaved()
method_12044()
needsSaving()
m_6344_()
isNeedsSaving()
public ChunkStatus
j()
getStatus()
method_12009()
getStatus()
m_6415_()
getChunkStatus()
public void
a(cmp arg0)
setStatus(ChunkStatus arg0)
method_12308(class_2806 arg0)
setStatus(ChunkStatus status)
m_7150_(C_2126_ arg0)
public LevelChunkSection[]
d()
getSections()
method_12006()
getSectionArray()
m_7103_()
getSections()
public Collection<Map$Entry<Heightmap$Types, Heightmap>>
e()
getHeightmaps()
method_12011()
getHeightmaps()
m_6890_()
public Heightmap
a(cps$a arg0)
getOrCreateHeightmapUnprimed(Heightmap$Types arg0)
method_12032(class_2902$class_2903 arg0)
getHeightmap(Heightmap$Type arg0)
m_6005_(C_2190_$C_2191_ arg0)
public int
a(cps$a arg0, int arg1, int arg2)
getHeight(Heightmap$Types arg0, int arg1, int arg2)
method_12005(class_2902$class_2903 arg0, int arg1, int arg2)
sampleHeightmap(Heightmap$Type arg0, int arg1, int arg2)
m_5885_(C_2190_$C_2191_ p_63196_, int p_63197_, int arg2)
getHighestBlock(HeightMap$Type arg0, int arg1, int arg2)
public BlockPos
b(cps$a arg0)
getHeighestPosition(Heightmap$Types arg0)
method_35319(class_2902$class_2903 arg0)
method_35319(Heightmap$Type arg0)
m_142241_(C_2190_$C_2191_ arg0)
public ChunkPos
f()
getPos()
method_12004()
getPos()
m_7697_()
getPos()
public StructureStart<?>
a(cuc<?> arg0)
getStartForFeature(StructureFeature<?> arg0)
method_12181(class_3195<?> arg0)
getStructureStart(StructureFeature<?> arg0)
m_7253_(C_2304_<?> arg0)
public void
a(cuc<?> arg0, dbn<?> arg1)
setStartForFeature(StructureFeature<?> arg0, StructureStart<?> arg1)
method_12184(class_3195<?> arg0, class_3449<?> arg1)
setStructureStart(StructureFeature<?> arg0, StructureStart<?> arg1)
m_8078_(C_2304_<?> p_63208_, C_2588_<?> arg1)
public Map<StructureFeature<?>, StructureStart<?>>
g()
getAllStarts()
method_12016()
getStructureStarts()
m_6633_()
public void
a(Map<cuc<?>, dbn<?>> arg0)
setAllStarts(Map<StructureFeature<?>, StructureStart<?>> arg0)
method_12034(Map<class_3195<?>, class_3449<?>> arg0)
setStructureStarts(Map<StructureFeature<?>, StructureStart<?>> arg0)
m_8040_(Map<C_2304_<?>, C_2588_<?>> arg0)
public it.unimi.dsi.fastutil.longs.LongSet
b(cuc<?> arg0)
getReferencesForFeature(StructureFeature<?> arg0)
method_12180(class_3195<?> arg0)
getStructureReferences(StructureFeature<?> arg0)
m_6705_(C_2304_<?> arg0)
public void
a(cuc<?> arg0, long arg1)
addReferenceForFeature(StructureFeature<?> arg0, long arg1)
method_12182(class_3195<?> arg0, long arg1)
addStructureReference(StructureFeature<?> arg0, long arg1)
m_6306_(C_2304_<?> p_63205_, long arg1)
public Map<StructureFeature<?>, it.unimi.dsi.fastutil.longs.LongSet>
w()
getAllReferences()
method_12179()
getStructureReferences()
m_7049_()
public void
b(Map<cuc<?>, it.unimi.dsi.fastutil.longs.LongSet> arg0)
setAllReferences(Map<StructureFeature<?>, it.unimi.dsi.fastutil.longs.LongSet> arg0)
method_12183(Map<class_3195<?>, it.unimi.dsi.fastutil.longs.LongSet> arg0)
setStructureReferences(Map<StructureFeature<?>, it.unimi.dsi.fastutil.longs.LongSet> arg0)
m_7946_(Map<C_2304_<?>, it.unimi.dsi.fastutil.longs.LongSet> arg0)
public static short
k(gg 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, bvu 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(gg arg0)
markPosForPostprocessing(BlockPos arg0)
method_12039(class_2338 arg0)
markBlockForPostProcessing(BlockPos arg0)
m_8113_(C_4675_ arg0)
public it.unimi.dsi.fastutil.shorts.ShortList[]
k()
getPostProcessing()
method_12012()
getPostProcessingLists()
m_6720_()
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 ProtoTickList<Block>
t()
getBlockTicks()
method_12303()
getBlockTickScheduler()
m_5782_()
public ProtoTickList<Fluid>
u()
getLiquidTicks()
method_12313()
getFluidTickScheduler()
m_5783_()
public UpgradeData
q()
getUpgradeData()
method_12003()
getUpgradeData()
m_7387_()
public void
a(long arg0)
setInhabitedTime(long arg0)
method_12028(long arg0)
setInhabitedTime(long arg0)
m_6141_(long arg0)
setInhabitedTime(long arg0)
public long
r()
getInhabitedTime()
method_12033()
getInhabitedTime()
m_6319_()
getInhabitedTime()
public void
a(na arg0)
setBlockEntityNbt(CompoundTag arg0)
method_12042(class_2487 arg0)
addPendingBlockEntityNbt(NbtCompound arg0)
m_5604_(C_4917_ arg0)
public Map<BlockPos, CompoundTag>
A()
getBlockEntityNbts()
method_12316()
getBlockEntityNbts()
m_63294_()
public CompoundTag
f(gg arg0)
getBlockEntityNbt(BlockPos arg0)
method_12024(class_2338 arg0)
getBlockEntityNbt(BlockPos arg0)
m_8049_(C_4675_ arg0)
public CompoundTag
g(gg arg0)
getBlockEntityNbtForSaving(BlockPos arg0)
method_20598(class_2338 arg0)
getPackedBlockEntityNbt(BlockPos arg0)
m_8051_(C_4675_ arg0)
public void
d(gg arg0)
removeBlockEntity(BlockPos arg0)
method_12041(class_2338 arg0)
removeBlockEntity(BlockPos arg0)
m_8114_(C_4675_ arg0)
removeTileEntity(BlockPosition arg0)
public BitSet
a(cpo$a arg0)
getCarvingMask(GenerationStep$Carving arg0)
method_12025(class_2893$class_2894 arg0)
getCarvingMask(GenerationStep$Carver carver)
m_6548_(C_2187_$C_2188_ arg0)
public BitSet
b(cpo$a arg0)
getOrCreateCarvingMask(GenerationStep$Carving arg0)
method_28510(class_2893$class_2894 arg0)
getOrCreateCarvingMask(GenerationStep$Carver carver)
m_6547_(C_2187_$C_2188_ arg0)
public void
a(cpo$a arg0, BitSet arg1)
setCarvingMask(GenerationStep$Carving arg0, BitSet arg1)
method_12307(class_2893$class_2894 arg0, BitSet arg1)
setCarvingMask(GenerationStep$Carver carver, BitSet mask)
m_63189_(C_2187_$C_2188_ p_63191_, BitSet arg1)
public void
a(dej arg0)
setLightEngine(LevelLightEngine arg0)
method_17032(class_3568 arg0)
setLightingProvider(LightingProvider lightingProvider)
m_63209_(C_2681_ arg0)
public boolean
s()
isLightCorrect()
method_12038()
isLightOn()
m_6332_()
public void
b(boolean arg0)
setLightCorrect(boolean arg0)
method_12020(boolean arg0)
setLightOn(boolean arg0)
m_8094_(boolean arg0)
public int
s_()
getMinBuildHeight()
method_31607()
getBottomY()
m_141937_()
getMinBuildHeight()
public int
t_()
getHeight()
method_31605()
getHeight()
m_141928_()
getHeight()