Package net.minecraft.world.level.chunk
Interface ChunkAccess
- All Superinterfaces:
BlockGetter
,FeatureAccess
,LevelHeightAccessor
- All Known Implementing Classes:
EmptyLevelChunk
,ImposterProtoChunk
,LevelChunk
,ProtoChunk
-
Method Summary
Modifier and TypeMethodDescriptionvoid
default void
addPackedPostProcess(short p_62092_, int p_62093_)
Map<StructureFeature<?>,StructureStart<?>>
getBlockEntityNbt(BlockPos p_62103_)
getBlockEntityNbtForSaving(BlockPos p_62104_)
default GameEventDispatcher
getEventDispatcher(int p_156113_)
getHeighestPosition(Heightmap.Types p_156117_)
int
getHeight(Heightmap.Types p_62080_, int p_62081_, int p_62082_)
default LevelChunkSection
default int
long
getOrCreateHeightmapUnprimed(Heightmap.Types p_62079_)
static it.unimi.dsi.fastutil.shorts.ShortList
getOrCreateOffsetList(it.unimi.dsi.fastutil.shorts.ShortList[] p_62096_, int p_62097_)
default LevelChunkSection
getOrCreateSection(int p_156116_)
getPos()
it.unimi.dsi.fastutil.shorts.ShortList[]
default LevelAccessor
boolean
boolean
default boolean
isYSpaceEmpty(int p_62075_, int p_62076_)
default void
markPosForPostprocessing(BlockPos p_62102_)
void
removeBlockEntity(BlockPos p_62101_)
void
setAllStarts(Map<StructureFeature<?>,StructureStart<?>> p_62090_)
void
setBlockEntity(BlockEntity p_156114_)
default void
setBlockEntityNbt(CompoundTag p_62091_)
setBlockState(BlockPos p_62087_, BlockState p_62088_, boolean p_62089_)
default void
setHeightmap(Heightmap.Types p_62083_, long[] p_62084_)
void
setInhabitedTime(long p_62099_)
void
setLightCorrect(boolean p_62100_)
void
setUnsaved(boolean p_62094_)
Methods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLine
Methods inherited from interface net.minecraft.world.level.chunk.FeatureAccess
addReferenceForFeature, getAllReferences, getReferencesForFeature, getStartForFeature, setAllReferences, setStartForFeature
Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getHeight, getMaxBuildHeight, getMaxSection, getMinBuildHeight, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
Method Details
-
getEventDispatcher
-
setBlockState
-
setBlockEntity
-
addEntity
-
getHighestSection
-
getHighestSectionPosition
default int getHighestSectionPosition() -
getBlockEntitiesPos
-
getSections
LevelChunkSection[] getSections() -
getOrCreateSection
-
getHeightmaps
Collection<Map.Entry<Heightmap.Types,Heightmap>> getHeightmaps() -
setHeightmap
-
getOrCreateHeightmapUnprimed
-
getHeight
-
getHeighestPosition
-
getPos
ChunkPos getPos() -
getAllStarts
Map<StructureFeature<?>,StructureStart<?>> getAllStarts() -
setAllStarts
-
isYSpaceEmpty
default boolean isYSpaceEmpty(int p_62075_, int p_62076_) -
getBiomes
-
setUnsaved
void setUnsaved(boolean p_62094_) -
isUnsaved
boolean isUnsaved() -
getStatus
ChunkStatus getStatus() -
removeBlockEntity
-
markPosForPostprocessing
-
getPostProcessing
it.unimi.dsi.fastutil.shorts.ShortList[] getPostProcessing() -
addPackedPostProcess
default void addPackedPostProcess(short p_62092_, int p_62093_) -
setBlockEntityNbt
-
getBlockEntityNbt
-
getBlockEntityNbtForSaving
-
getLights
-
getBlockTicks
-
getLiquidTicks
-
getUpgradeData
UpgradeData getUpgradeData() -
setInhabitedTime
void setInhabitedTime(long p_62099_) -
getInhabitedTime
long getInhabitedTime() -
getOrCreateOffsetList
static it.unimi.dsi.fastutil.shorts.ShortList getOrCreateOffsetList(it.unimi.dsi.fastutil.shorts.ShortList[] p_62096_, int p_62097_) -
isLightCorrect
boolean isLightCorrect() -
setLightCorrect
void setLightCorrect(boolean p_62100_) -
getWorldForge
-