Interface GeneratedChunk


public interface GeneratedChunk
The chunk a WorldGenerator fills.
  • Method Summary

    Modifier and Type
    Method
    Description
    blockAt(int x, int y, int z)
     
    int
     
    int
     
    int
     
    int
     
    void
    setBiome(int x, int y, int z, Key biome)
     
    default void
    setBlock(int x, int y, int z, BlockData data)
    Places a block state.
    default void
    setBlock(int x, int y, int z, Key block)
    Places the default state of a block.
    void
    setBlock(int x, int y, int z, Key block, Map<String,String> properties)
    Places a block state.
  • Method Details

    • chunkX

      int chunkX()
    • chunkZ

      int chunkZ()
    • minY

      int minY()
    • height

      int height()
    • setBlock

      default void setBlock(int x, int y, int z, Key block)
      Places the default state of a block.
    • setBlock

      void setBlock(int x, int y, int z, Key block, Map<String,String> properties)
      Places a block state. Properties that are not given keep their default value.
      Parameters:
      properties - property name to value, e.g. half=upper
    • setBlock

      default void setBlock(int x, int y, int z, BlockData data)
      Places a block state.
    • blockAt

      Key blockAt(int x, int y, int z)
      Returns:
      the block currently stored at the position
    • setBiome

      void setBiome(int x, int y, int z, Key biome)