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 BiomeArraybiomesprivate Map<BlockPos,BlockEntity>blockEntitiesprivate Map<BlockPos,CompoundTag>blockEntityTagsprivate ChunkTickScheduler<Block>blockTickSchedulerprivate Map<GenerationStep.Carver,BitSet>carvingMasksprivate List<CompoundTag>entitiesprivate HeightLimitViewfield_27229private ChunkTickScheduler<Fluid>fluidTickSchedulerprivate Map<Heightmap.Type,Heightmap>heightmapsprivate longinhabitedTimeprivate LightingProviderlightingProviderprivate booleanlightOnprivate List<BlockPos>lightSourcesprivate static LoggerLOGGERprivate ChunkPosposprivate ShortList[]postProcessingListsprivate ChunkSection[]sectionsprivate booleanshouldSaveprivate ChunkStatusstatusprivate Map<StructureFeature<?>,LongSet>structureReferencesprivate Map<StructureFeature<?>,StructureStart<?>>structureStartsprivate UpgradeDataupgradeData -
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, waitMethods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.chunk.Chunk
areSectionsEmptyBetween, getHighestNonEmptySection, getHighestNonEmptySectionYOffset, method_32914Methods 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:
getBlockStatein interfaceBlockView
-
getFluidState
- Specified by:
getFluidStatein interfaceBlockView
-
getLightSourcesStream
- Specified by:
getLightSourcesStreamin interfaceChunk
-
getLightSourcesBySection
-
addLightSource
public void addLightSource(short chunkSliceRel, int sectionY) -
addLightSource
-
setBlockState
- Specified by:
setBlockStatein interfaceChunk
-
getSection
- Specified by:
getSectionin interfaceHeightLimitView
-
setBlockEntity
- Specified by:
setBlockEntityin interfaceChunk
-
getBlockEntityPositions
- Specified by:
getBlockEntityPositionsin interfaceChunk
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceBlockView
-
getBlockEntities
-
addEntity
-
addEntity
-
getEntities
-
setBiomes
-
getBiomeArray
- Specified by:
getBiomeArrayin interfaceChunk
-
setShouldSave
public void setShouldSave(boolean shouldSave)- Specified by:
setShouldSavein interfaceChunk
-
needsSaving
public boolean needsSaving()- Specified by:
needsSavingin interfaceChunk
-
getStatus
-
setStatus
-
getSectionArray
- Specified by:
getSectionArrayin interfaceChunk
-
getHeightmaps
- Specified by:
getHeightmapsin interfaceChunk
-
setHeightmap
- Specified by:
setHeightmapin interfaceChunk
-
getHeightmap
- Specified by:
getHeightmapin interfaceChunk
-
sampleHeightmap
- Specified by:
sampleHeightmapin interfaceChunk
-
getPos
-
getStructureStart
- Specified by:
getStructureStartin interfaceStructureHolder
-
setStructureStart
- Specified by:
setStructureStartin interfaceStructureHolder
-
getStructureStarts
- Specified by:
getStructureStartsin interfaceChunk
-
setStructureStarts
- Specified by:
setStructureStartsin interfaceChunk
-
getStructureReferences
- Specified by:
getStructureReferencesin interfaceStructureHolder
-
addStructureReference
- Specified by:
addStructureReferencein interfaceStructureHolder
-
getStructureReferences
- Specified by:
getStructureReferencesin interfaceStructureHolder
-
setStructureReferences
- Specified by:
setStructureReferencesin interfaceStructureHolder
-
getPackedSectionRelative
-
joinBlockPos
-
markBlockForPostProcessing
- Specified by:
markBlockForPostProcessingin interfaceChunk
-
getPostProcessingLists
- Specified by:
getPostProcessingListsin interfaceChunk
-
markBlockForPostProcessing
public void markBlockForPostProcessing(short short2, int int2)- Specified by:
markBlockForPostProcessingin interfaceChunk
-
getBlockTickScheduler
- Specified by:
getBlockTickSchedulerin interfaceChunk
-
getFluidTickScheduler
- Specified by:
getFluidTickSchedulerin interfaceChunk
-
getUpgradeData
- Specified by:
getUpgradeDatain interfaceChunk
-
setInhabitedTime
public void setInhabitedTime(long inhabitedTime)- Specified by:
setInhabitedTimein interfaceChunk
-
getInhabitedTime
public long getInhabitedTime()- Specified by:
getInhabitedTimein interfaceChunk
-
addPendingBlockEntityTag
- Specified by:
addPendingBlockEntityTagin interfaceChunk
-
getBlockEntityTags
-
getBlockEntityTag
- Specified by:
getBlockEntityTagin interfaceChunk
-
getPackedBlockEntityTag
- Specified by:
getPackedBlockEntityTagin interfaceChunk
-
removeBlockEntity
- Specified by:
removeBlockEntityin interfaceChunk
-
getCarvingMask
-
getOrCreateCarvingMask
-
setCarvingMask
-
setLightingProvider
-
isLightOn
public boolean isLightOn() -
setLightOn
public void setLightOn(boolean lightOn)- Specified by:
setLightOnin interfaceChunk
-
getSectionCount
public int getSectionCount()- Specified by:
getSectionCountin interfaceHeightLimitView
-
getBottomSectionLimit
public int getBottomSectionLimit()- Specified by:
getBottomSectionLimitin interfaceHeightLimitView
-