接口 Palette
public interface Palette
Represent a variation of a structure.
Most structures, like the ones generated with structure blocks, only have a
single variant.
-
方法概要
修饰符和类型方法说明int
Gets the number of blocks stored in this palette.Gets a copy of the blocks this Palette is made of.
-
方法详细资料
-
getBlocks
Gets a copy of the blocks this Palette is made of. Thepositions
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
-