Package net.minecraft.world.chunk
Class ProtoChunk
java.lang.Object
net.minecraft.world.chunk.ProtoChunk
- All Implemented Interfaces:
BlockView
,Chunk
,HeightLimitView
,StructureHolder
- Direct Known Subclasses:
ReadOnlyChunk
public class ProtoChunk extends Object implements Chunk
-
Field Summary
Fields Modifier and Type Field Description private BiomeArray
biomes
private Map<BlockPos,BlockEntity>
blockEntities
private Map<BlockPos,CompoundTag>
blockEntityTags
private ChunkTickScheduler<Block>
blockTickScheduler
private Map<GenerationStep.Carver,BitSet>
carvingMasks
private List<CompoundTag>
entities
private HeightLimitView
field_27229
private ChunkTickScheduler<Fluid>
fluidTickScheduler
private Map<Heightmap.Type,Heightmap>
heightmaps
private long
inhabitedTime
private LightingProvider
lightingProvider
private boolean
lightOn
private List<BlockPos>
lightSources
private static Logger
LOGGER
private ChunkPos
pos
private ShortList[]
postProcessingLists
private ChunkSection[]
sections
private boolean
shouldSave
private ChunkStatus
status
private Map<StructureFeature<?>,LongSet>
structureReferences
private Map<StructureFeature<?>,StructureStart<?>>
structureStarts
private UpgradeData
upgradeData
-
Constructor Summary
Constructors Constructor Description ProtoChunk(ChunkPos pos, UpgradeData upgradeData, ChunkSection[] chunkSection, ChunkTickScheduler<Block> blockTickScheduler, ChunkTickScheduler<Fluid> fluidTickScheduler, HeightLimitView heightLimitView)
ProtoChunk(ChunkPos pos, UpgradeData upgradeData, HeightLimitView heightLimitView)
-
Method Summary
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.BlockView
getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.chunk.Chunk
areSectionsEmptyBetween, getHighestNonEmptySection, getHighestNonEmptySectionYOffset, method_32914
Methods inherited from interface net.minecraft.world.HeightLimitView
getSectionIndex, getSectionIndexFromSection, getTopHeightLimit, getTopSectionLimit, isOutOfHeightLimit, isOutOfHeightLimit, method_32890, method_32891
-
Field Details
-
LOGGER
-
pos
-
shouldSave
private volatile boolean shouldSave -
biomes
-
lightingProvider
-
heightmaps
-
status
-
blockEntities
-
blockEntityTags
-
sections
-
entities
-
lightSources
-
postProcessingLists
-
structureStarts
-
structureReferences
-
upgradeData
-
blockTickScheduler
-
fluidTickScheduler
-
field_27229
-
inhabitedTime
private long inhabitedTime -
carvingMasks
-
lightOn
private volatile boolean lightOn
-
-
Constructor Details
-
ProtoChunk
-
ProtoChunk
public ProtoChunk(ChunkPos pos, UpgradeData upgradeData, @Nullable ChunkSection[] chunkSection, ChunkTickScheduler<Block> blockTickScheduler, ChunkTickScheduler<Fluid> fluidTickScheduler, HeightLimitView heightLimitView)
-
-
Method Details
-
getBlockState
- Specified by:
getBlockState
in interfaceBlockView
-
getFluidState
- Specified by:
getFluidState
in interfaceBlockView
-
getLightSourcesStream
- Specified by:
getLightSourcesStream
in interfaceChunk
-
getLightSourcesBySection
-
addLightSource
public void addLightSource(short chunkSliceRel, int sectionY) -
addLightSource
-
setBlockState
- Specified by:
setBlockState
in interfaceChunk
-
getSection
- Specified by:
getSection
in interfaceHeightLimitView
-
setBlockEntity
- Specified by:
setBlockEntity
in interfaceChunk
-
getBlockEntityPositions
- Specified by:
getBlockEntityPositions
in interfaceChunk
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceBlockView
-
getBlockEntities
-
addEntity
-
addEntity
-
getEntities
-
setBiomes
-
getBiomeArray
- Specified by:
getBiomeArray
in interfaceChunk
-
setShouldSave
public void setShouldSave(boolean shouldSave)- Specified by:
setShouldSave
in interfaceChunk
-
needsSaving
public boolean needsSaving()- Specified by:
needsSaving
in interfaceChunk
-
getStatus
-
setStatus
-
getSectionArray
- Specified by:
getSectionArray
in interfaceChunk
-
getHeightmaps
- Specified by:
getHeightmaps
in interfaceChunk
-
setHeightmap
- Specified by:
setHeightmap
in interfaceChunk
-
getHeightmap
- Specified by:
getHeightmap
in interfaceChunk
-
sampleHeightmap
- Specified by:
sampleHeightmap
in interfaceChunk
-
getPos
-
getStructureStart
- Specified by:
getStructureStart
in interfaceStructureHolder
-
setStructureStart
- Specified by:
setStructureStart
in interfaceStructureHolder
-
getStructureStarts
- Specified by:
getStructureStarts
in interfaceChunk
-
setStructureStarts
- Specified by:
setStructureStarts
in interfaceChunk
-
getStructureReferences
- Specified by:
getStructureReferences
in interfaceStructureHolder
-
addStructureReference
- Specified by:
addStructureReference
in interfaceStructureHolder
-
getStructureReferences
- Specified by:
getStructureReferences
in interfaceStructureHolder
-
setStructureReferences
- Specified by:
setStructureReferences
in interfaceStructureHolder
-
getPackedSectionRelative
-
joinBlockPos
-
markBlockForPostProcessing
- Specified by:
markBlockForPostProcessing
in interfaceChunk
-
getPostProcessingLists
- Specified by:
getPostProcessingLists
in interfaceChunk
-
markBlockForPostProcessing
public void markBlockForPostProcessing(short short2, int int2)- Specified by:
markBlockForPostProcessing
in interfaceChunk
-
getBlockTickScheduler
- Specified by:
getBlockTickScheduler
in interfaceChunk
-
getFluidTickScheduler
- Specified by:
getFluidTickScheduler
in interfaceChunk
-
getUpgradeData
- Specified by:
getUpgradeData
in interfaceChunk
-
setInhabitedTime
public void setInhabitedTime(long inhabitedTime)- Specified by:
setInhabitedTime
in interfaceChunk
-
getInhabitedTime
public long getInhabitedTime()- Specified by:
getInhabitedTime
in interfaceChunk
-
addPendingBlockEntityTag
- Specified by:
addPendingBlockEntityTag
in interfaceChunk
-
getBlockEntityTags
-
getBlockEntityTag
- Specified by:
getBlockEntityTag
in interfaceChunk
-
getPackedBlockEntityTag
- Specified by:
getPackedBlockEntityTag
in interfaceChunk
-
removeBlockEntity
- Specified by:
removeBlockEntity
in interfaceChunk
-
getCarvingMask
-
getOrCreateCarvingMask
-
setCarvingMask
-
setLightingProvider
-
isLightOn
public boolean isLightOn() -
setLightOn
public void setLightOn(boolean lightOn)- Specified by:
setLightOn
in interfaceChunk
-
getSectionCount
public int getSectionCount()- Specified by:
getSectionCount
in interfaceHeightLimitView
-
getBottomSectionLimit
public int getBottomSectionLimit()- Specified by:
getBottomSectionLimit
in interfaceHeightLimitView
-