public interface Palette
Represent a variation of a structure. Most structures, like the ones generated with structure blocks, only have a single variant.
Method SummaryModifier and TypeMethodDescription
intGets the number of blocks stored in this palette.Gets a copy of the blocks this Palette is made of.
getBlocks@NotNull List<BlockState> getBlocks()Gets a copy of the blocks this Palette is made of. The
positionsof 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
getBlockCountint getBlockCount()Gets the number of blocks stored in this palette.
- The number of blocks in this palette