Interface ChunkSection3DBiome

All Known Implementing Classes:
ChunkSection, EmptyChunkSection

@PowerNukkitXOnly @Since("1.19.20-r3") public interface ChunkSection3DBiome
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
     
    int
    getBiomeId(int x, int y, int z)
    获取子区块中某个特定位置的生物群系id
    void
    set3DBiomeDataArray(byte[] data)
    设置3D生物群系字节数据
    void
    setBiomeId(int x, int y, int z, byte id)
    设置子区块中某个特定位置的生物群系id
  • Method Details

    • getBiomeId

      int getBiomeId(int x, int y, int z)
      获取子区块中某个特定位置的生物群系id
      Parameters:
      x - [0, 16)
      y - [0, 16)
      z - [0, 16)
      Returns:
      特定位置的生物群系id
    • setBiomeId

      void setBiomeId(int x, int y, int z, byte id)
      设置子区块中某个特定位置的生物群系id
      Parameters:
      x - [0, 16)
      y - [0, 16)
      z - [0, 16)
      id - 生物群系id
    • get3DBiomeDataArray

      byte[] get3DBiomeDataArray()
      Returns:
      3D生物群系字节数据
    • set3DBiomeDataArray

      void set3DBiomeDataArray(byte[] data)
      设置3D生物群系字节数据