net.minecraft.world.chunk

public class ProtoChunk

extends Chunk

All mapped superinterfaces:

LightSourceView, BlockView, HeightLimitView, StructureHolder, BiomeAccess$Storage

net.minecraft.world.level.chunk.ProtoChunk
net.minecraft.class_2839
net.minecraft.world.chunk.ProtoChunk

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_60377
LOGGER
private volatile LightingProvider
lightEngine
field_17105
lightingProvider
private volatile ChunkStatus
status
field_12918
status
private final List<NbtCompound>
entities
field_12929
entities
private CarvingMask
carvingMask
field_12926
carvingMask
private BelowZeroRetrogen
belowZeroRetrogen
field_35473
belowZeroRetrogen
private final SimpleTickScheduler<Block>
blockTicks
field_35474
blockTickScheduler
private final SimpleTickScheduler<Fluid>
fluidTicks
field_35475
fluidTickScheduler

Constructor summary

ModifierConstructor
public (ChunkPos pos, UpgradeData upgradeData, HeightLimitView world, PalettesFactory palettesFactory, BlendingData blendingData)
public (ChunkPos pos, UpgradeData upgradeData, ChunkSection[] sections, SimpleTickScheduler<Block> blockTickScheduler, SimpleTickScheduler<Fluid> fluidTickScheduler, HeightLimitView world, PalettesFactory palettesFactory, BlendingData blendingData)

Method summary

Modifier and TypeMethod
public BasicTickScheduler<Block>
getBlockTicks()
method_12013()
getBlockTickScheduler()
public BasicTickScheduler<Fluid>
getFluidTicks()
method_12014()
getFluidTickScheduler()
public Chunk$TickSchedulers
getTicksForSerialization(long currentTick)
method_39296(long arg0)
getTickSchedulers(long arg0)
public BlockState
getBlockState(BlockPos pos)
method_8320(class_2338 arg0)
getBlockState(BlockPos arg0)
public FluidState
getFluidState(BlockPos pos)
method_8316(class_2338 arg0)
getFluidState(BlockPos arg0)
public BlockState
setBlockState(BlockPos pos, BlockState state, int flags)
method_12010(class_2338 arg0, class_2680 arg1, int arg2)
setBlockState(BlockPos arg0, BlockState arg1, int arg2)
public void
setBlockEntity(BlockEntity blockEntity)
method_12007(class_2586 arg0)
setBlockEntity(BlockEntity arg0)
public BlockEntity
getBlockEntity(BlockPos pos)
method_8321(class_2338 arg0)
getBlockEntity(BlockPos arg0)
public Map<BlockPos, BlockEntity>
getBlockEntities()
method_12309()
getBlockEntities()
public void
addEntity(CompoundTag tag)
method_12302(class_2487 arg0)
addEntity(NbtCompound entityNbt)
public void
addEntity(Entity entity)
method_12002(class_1297 arg0)
addEntity(Entity arg0)
public void
setStartForStructure(Structure structure, StructureStart structureStart)
method_12184(class_3195 arg0, class_3449 arg1)
setStructureStart(Structure arg0, StructureStart arg1)
public List<NbtCompound>
getEntities()
method_12295()
getEntities()
public ChunkStatus
getPersistedStatus()
method_12009()
getStatus()
public void
setPersistedStatus(ChunkStatus status)
method_12308(class_2806 arg0)
setStatus(ChunkStatus status)
public RegistryEntry<Biome>
getNoiseBiome(int quartX, int quartY, int quartZ)
method_16359(int arg0, int arg1, int arg2)
getBiomeForNoiseGen(int arg0, int arg1, int arg2)
public static short
packOffsetCoordinates(BlockPos pos)
method_12300(class_2338 arg0)
getPackedSectionRelative(BlockPos arg0)
public static BlockPos
unpackOffsetCoordinates(short packedData, int sectionY, ChunkPos chunkPos)
method_12314(short arg0, int arg1, class_1923 arg2)
joinBlockPos(short arg0, int sectionY, ChunkPos chunkPos)
public void
markPosForPostProcessing(BlockPos blockPos)
method_12039(class_2338 arg0)
markBlockForPostProcessing(BlockPos arg0)
public void
addPackedPostProcess(it.unimi.dsi.fastutil.shorts.ShortList packedOffsets, int sectionIndex)
method_12029(it.unimi.dsi.fastutil.shorts.ShortList arg0, int arg1)
markBlocksForPostProcessing(it.unimi.dsi.fastutil.shorts.ShortList arg0, int arg1)
public Map<BlockPos, NbtCompound>
getBlockEntityNbts()
method_12316()
getBlockEntityNbts()
public NbtCompound
getBlockEntityNbtForSaving(BlockPos blockPos, HolderLookup$Provider registryAccess)
method_20598(class_2338 arg0, class_7225$class_7874 arg1)
getPackedBlockEntityNbt(BlockPos arg0, RegistryWrapper$WrapperLookup arg1)
public void
removeBlockEntity(BlockPos pos)
method_12041(class_2338 arg0)
removeBlockEntity(BlockPos arg0)
public CarvingMask
getCarvingMask()
method_12025()
getCarvingMask()
public CarvingMask
getOrCreateCarvingMask()
method_28510()
getOrCreateCarvingMask()
public void
setCarvingMask(CarvingMask data)
method_12307(class_6643 arg0)
setCarvingMask(CarvingMask carvingMask)
public void
setLightEngine(LevelLightEngine lightEngine)
method_17032(class_3568 arg0)
setLightingProvider(LightingProvider lightingProvider)
public void
setBelowZeroRetrogen(BelowZeroRetrogen belowZeroRetrogen)
method_39309(class_6746 arg0)
setBelowZeroRetrogen(BelowZeroRetrogen belowZeroRetrogen)
public BelowZeroRetrogen
getBelowZeroRetrogen()
method_39300()
getBelowZeroRetrogen()
private static <T> ChunkTickScheduler<T>
unpackTicks(ProtoChunkTicks<T> ticks)
method_39310(class_4296<T> arg0)
createProtoTickScheduler(SimpleTickScheduler<T> tickScheduler)
public ChunkTickScheduler<Block>
unpackBlockTicks()
method_39307()
getBlockProtoTickScheduler()
public ChunkTickScheduler<Fluid>
unpackFluidTicks()
method_39308()
getFluidProtoTickScheduler()
public HeightLimitView
getHeightAccessorForGeneration()
method_39460()
getHeightLimitView()