Package net.minecraft.world.chunk
Class ProtoChunk
java.lang.Object
net.minecraft.world.chunk.ProtoChunk
- All Implemented Interfaces:
BlockView,Chunk,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 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)ProtoChunk(ChunkPos pos, UpgradeData upgradeData, ChunkSection[] sections, ChunkTickScheduler<Block> blockTickScheduler, ChunkTickScheduler<Fluid> fluidTickScheduler) -
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, getHeight, getLuminance, getMaxLightLevel, method_29546, raycast, raycastBlockMethods inherited from interface net.minecraft.world.chunk.Chunk
areSectionsEmptyBetween, getHighestNonEmptySection, getHighestNonEmptySectionYOffset
-
Field Details
-
LOGGER
-
pos
-
shouldSave
private volatile boolean shouldSave -
biomes
-
lightingProvider
-
heightmaps
-
status
-
blockEntities
-
blockEntityTags
-
sections
-
entities
-
lightSources
-
postProcessingLists
-
structureStarts
-
structureReferences
-
upgradeData
-
blockTickScheduler
-
fluidTickScheduler
-
inhabitedTime
private long inhabitedTime -
carvingMasks
-
lightOn
private volatile boolean lightOn
-
-
Constructor Details
-
ProtoChunk
-
ProtoChunk
public ProtoChunk(ChunkPos pos, UpgradeData upgradeData, @Nullable ChunkSection[] sections, ChunkTickScheduler<Block> blockTickScheduler, ChunkTickScheduler<Fluid> fluidTickScheduler)
-
-
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
-
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
-
getLightingProvider
-
getHeightmaps
- Specified by:
getHeightmapsin interfaceChunk
-
setHeightmap
- Specified by:
setHeightmapin interfaceChunk
-
getHeightmap
- Specified by:
getHeightmapin interfaceChunk
-
sampleHeightmap
- Specified by:
sampleHeightmapin interfaceChunk
-
getPos
-
setLastSaveTime
public void setLastSaveTime(long lastSaveTime)- Specified by:
setLastSaveTimein interfaceChunk
-
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
-