接口 Palette


public interface Palette
表示结构的一个变体。 大多数结构,例如使用结构方块生成的结构,只有一个变体。
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    获取此调色板中存储的方块数量。
    获取构成此调色板的方块的副本。
  • 方法详细资料

    • getBlocks

      获取构成此调色板的方块的副本。 返回的方块状态的 位置 是相对于结构位置的偏移量,该位置在结构放置到世界中后提供。

      原文:Gets a copy of the blocks this Palette is made of. The positions of the returned block states are offsets relative to the structure's position that is provided once the structure is placed into the world.

      返回:
      The blocks in this palette
    • getBlockCount

      int getBlockCount()
      获取此调色板中存储的方块数量。

      原文:Gets the number of blocks stored in this palette.

      返回:
      The number of blocks in this palette