Package net.minecraft.world.chunk
Interface Chunk
- All Superinterfaces:
BlockView
,StructureHolder
- All Known Implementing Classes:
EmptyChunk
,ProtoChunk
,ReadOnlyChunk
,WorldChunk
public interface Chunk extends BlockView, StructureHolder
Represents a scoped, modifiable view of biomes, block states, fluid states and block entities.
-
Method Summary
Methods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getHeight, getLuminance, getMaxLightLevel, method_29546, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.StructureHolder
addStructureReference, getStructureReferences, getStructureReferences, getStructureStart, setStructureReferences, setStructureStart
-
Method Details
-
setBlockState
-
setBlockEntity
-
addEntity
-
getHighestNonEmptySection
-
getHighestNonEmptySectionYOffset
default int getHighestNonEmptySectionYOffset() -
getBlockEntityPositions
-
getSectionArray
ChunkSection[] getSectionArray() -
getHeightmaps
Collection<Map.Entry<Heightmap.Type,Heightmap>> getHeightmaps() -
setHeightmap
-
getHeightmap
-
sampleHeightmap
-
getPos
ChunkPos getPos() -
setLastSaveTime
void setLastSaveTime(long lastSaveTime) -
getStructureStarts
Map<StructureFeature<?>,StructureStart<?>> getStructureStarts() -
setStructureStarts
-
areSectionsEmptyBetween
default boolean areSectionsEmptyBetween(int lowerHeight, int upperHeight) -
getBiomeArray
-
setShouldSave
void setShouldSave(boolean shouldSave) -
needsSaving
boolean needsSaving() -
getStatus
ChunkStatus getStatus() -
removeBlockEntity
-
markBlockForPostProcessing
-
getPostProcessingLists
ShortList[] getPostProcessingLists() -
markBlockForPostProcessing
default void markBlockForPostProcessing(short short2, int int2) -
addPendingBlockEntityTag
-
getBlockEntityTag
-
getPackedBlockEntityTag
-
getLightSourcesStream
-
getBlockTickScheduler
TickScheduler<Block> getBlockTickScheduler() -
getFluidTickScheduler
TickScheduler<Fluid> getFluidTickScheduler() -
getUpgradeData
UpgradeData getUpgradeData() -
setInhabitedTime
void setInhabitedTime(long inhabitedTime) -
getInhabitedTime
long getInhabitedTime() -
getList
-
isLightOn
boolean isLightOn() -
setLightOn
void setLightOn(boolean lightOn)
-