Interface IChunk

All Superinterfaces:
IBlockReader, IStructureReader
All Known Implementing Classes:
Chunk, ChunkPrimer, ChunkPrimerWrapper, EmptyChunk

public interface IChunk extends IBlockReader, IStructureReader
  • Method Details

    • 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

      Set<BlockPos> getBlockEntitiesPos()
    • getSections

      ChunkSection[] getSections()
    • 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

      Map<Structure<?>,StructureStart<?>> getAllStarts()
    • setAllStarts

      void setAllStarts(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

      Stream<BlockPos> getLights()
    • getBlockTicks

      ITickList<Block> getBlockTicks()
    • getLiquidTicks

      ITickList<Fluid> getLiquidTicks()
    • 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()