Package net.minecraft.world.chunk
Interface IChunk
-
- All Superinterfaces:
IBlockReader
,IStructureReader
- All Known Implementing Classes:
Chunk
,ChunkPrimer
,ChunkPrimerWrapper
,EmptyChunk
public interface IChunk extends IBlockReader, IStructureReader
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
addEntity(Entity p_76612_1_)
default void
addPackedPostProcess(short p_201636_1_, int p_201636_2_)
java.util.Map<Structure<?>,StructureStart<?>>
getAllStarts()
BiomeContainer
getBiomes()
java.util.Set<BlockPos>
getBlockEntitiesPos()
CompoundNBT
getBlockEntityNbt(BlockPos p_201579_1_)
CompoundNBT
getBlockEntityNbtForSaving(BlockPos p_223134_1_)
ITickList<Block>
getBlockTicks()
int
getHeight(Heightmap.Type p_201576_1_, int p_201576_2_, int p_201576_3_)
java.util.Collection<java.util.Map.Entry<Heightmap.Type,Heightmap>>
getHeightmaps()
default ChunkSection
getHighestSection()
default int
getHighestSectionPosition()
long
getInhabitedTime()
java.util.stream.Stream<BlockPos>
getLights()
ITickList<Fluid>
getLiquidTicks()
Heightmap
getOrCreateHeightmapUnprimed(Heightmap.Type p_217303_1_)
static it.unimi.dsi.fastutil.shorts.ShortList
getOrCreateOffsetList(it.unimi.dsi.fastutil.shorts.ShortList[] p_217308_0_, int p_217308_1_)
ChunkPos
getPos()
it.unimi.dsi.fastutil.shorts.ShortList[]
getPostProcessing()
ChunkSection[]
getSections()
ChunkStatus
getStatus()
UpgradeData
getUpgradeData()
default IWorld
getWorldForge()
boolean
isLightCorrect()
boolean
isUnsaved()
default boolean
isYSpaceEmpty(int p_76606_1_, int p_76606_2_)
default void
markPosForPostprocessing(BlockPos p_201594_1_)
void
removeBlockEntity(BlockPos p_177425_1_)
void
setAllStarts(java.util.Map<Structure<?>,StructureStart<?>> p_201612_1_)
void
setBlockEntity(BlockPos p_177426_1_, TileEntity p_177426_2_)
default void
setBlockEntityNbt(CompoundNBT p_201591_1_)
BlockState
setBlockState(BlockPos p_177436_1_, BlockState p_177436_2_, boolean p_177436_3_)
void
setHeightmap(Heightmap.Type p_201607_1_, long[] p_201607_2_)
void
setInhabitedTime(long p_177415_1_)
void
setLastSaveTime(long p_177432_1_)
void
setLightCorrect(boolean p_217305_1_)
void
setUnsaved(boolean p_177427_1_)
-
Methods inherited from interface net.minecraft.world.IBlockReader
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxBuildHeight, getMaxLightLevel
-
Methods inherited from interface net.minecraft.world.IStructureReader
addReferenceForFeature, getAllReferences, getReferencesForFeature, getStartForFeature, setAllReferences, setStartForFeature
-
-
-
-
Method Detail
-
setBlockState
@Nullable BlockState setBlockState(BlockPos p_177436_1_, BlockState p_177436_2_, boolean p_177436_3_)
-
setBlockEntity
void setBlockEntity(BlockPos p_177426_1_, TileEntity p_177426_2_)
-
addEntity
void addEntity(Entity p_76612_1_)
-
getHighestSection
@Nullable default ChunkSection getHighestSection()
-
getHighestSectionPosition
default int getHighestSectionPosition()
-
getBlockEntitiesPos
java.util.Set<BlockPos> getBlockEntitiesPos()
-
getSections
ChunkSection[] getSections()
-
getHeightmaps
java.util.Collection<java.util.Map.Entry<Heightmap.Type,Heightmap>> getHeightmaps()
-
setHeightmap
void setHeightmap(Heightmap.Type p_201607_1_, long[] p_201607_2_)
-
getOrCreateHeightmapUnprimed
Heightmap getOrCreateHeightmapUnprimed(Heightmap.Type p_217303_1_)
-
getHeight
int getHeight(Heightmap.Type p_201576_1_, int p_201576_2_, int p_201576_3_)
-
getPos
ChunkPos getPos()
-
setLastSaveTime
void setLastSaveTime(long p_177432_1_)
-
getAllStarts
java.util.Map<Structure<?>,StructureStart<?>> getAllStarts()
-
setAllStarts
void setAllStarts(java.util.Map<Structure<?>,StructureStart<?>> p_201612_1_)
-
isYSpaceEmpty
default boolean isYSpaceEmpty(int p_76606_1_, int p_76606_2_)
-
getBiomes
@Nullable BiomeContainer getBiomes()
-
setUnsaved
void setUnsaved(boolean p_177427_1_)
-
isUnsaved
boolean isUnsaved()
-
getStatus
ChunkStatus getStatus()
-
removeBlockEntity
void removeBlockEntity(BlockPos p_177425_1_)
-
markPosForPostprocessing
default void markPosForPostprocessing(BlockPos p_201594_1_)
-
getPostProcessing
it.unimi.dsi.fastutil.shorts.ShortList[] getPostProcessing()
-
addPackedPostProcess
default void addPackedPostProcess(short p_201636_1_, int p_201636_2_)
-
setBlockEntityNbt
default void setBlockEntityNbt(CompoundNBT p_201591_1_)
-
getBlockEntityNbt
@Nullable CompoundNBT getBlockEntityNbt(BlockPos p_201579_1_)
-
getBlockEntityNbtForSaving
@Nullable CompoundNBT getBlockEntityNbtForSaving(BlockPos p_223134_1_)
-
getLights
java.util.stream.Stream<BlockPos> getLights()
-
getUpgradeData
UpgradeData getUpgradeData()
-
setInhabitedTime
void setInhabitedTime(long p_177415_1_)
-
getInhabitedTime
long getInhabitedTime()
-
getOrCreateOffsetList
static it.unimi.dsi.fastutil.shorts.ShortList getOrCreateOffsetList(it.unimi.dsi.fastutil.shorts.ShortList[] p_217308_0_, int p_217308_1_)
-
isLightCorrect
boolean isLightCorrect()
-
setLightCorrect
void setLightCorrect(boolean p_217305_1_)
-
getWorldForge
@Nullable default IWorld getWorldForge()
-
-