Package net.minecraft.world.chunk
Interface Chunk
- All Superinterfaces:
BlockView
,HeightLimitView
,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, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.HeightLimitView
getBottomSectionLimit, getSection, getSectionCount, getSectionIndex, getSectionIndexFromSection, getTopHeightLimit, getTopSectionLimit, isOutOfHeightLimit, isOutOfHeightLimit, method_32890, method_32891
Methods inherited from interface net.minecraft.world.StructureHolder
addStructureReference, getStructureReferences, getStructureReferences, getStructureStart, setStructureReferences, setStructureStart
-
Method Details
-
method_32914
-
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() -
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)
-