f00727c57e
Co-authored-by: Bjarne Koll <git@lynxplay.dev> Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com> Co-authored-by: MiniDigger | Martin <admin@minidigger.dev> Co-authored-by: Nassim Jahnke <nassim@njahnke.dev> Co-authored-by: Noah van der Aa <ndvdaa@gmail.com> Co-authored-by: Owen1212055 <23108066+Owen1212055@users.noreply.github.com> Co-authored-by: Shane Freeder <theboyetronic@gmail.com> Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com> Co-authored-by: Tamion <70228790+notTamion@users.noreply.github.com> Co-authored-by: Warrior <50800980+Warriorrrr@users.noreply.github.com>
34 lines
864 B
Java
34 lines
864 B
Java
package org.bukkit.structure;
|
|
|
|
import java.util.List;
|
|
import org.bukkit.block.BlockState;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/**
|
|
* Represent a variation of a structure.
|
|
* <p>
|
|
* Most structures, like the ones generated with structure blocks, only have a
|
|
* single variant.
|
|
*/
|
|
public interface Palette {
|
|
|
|
/**
|
|
* Gets a copy of the blocks this Palette is made of.
|
|
* <p>
|
|
* The {@link BlockState#getLocation() 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.
|
|
*
|
|
* @return The blocks in this palette
|
|
*/
|
|
@NotNull
|
|
List<BlockState> getBlocks();
|
|
|
|
/**
|
|
* Gets the number of blocks stored in this palette.
|
|
*
|
|
* @return The number of blocks in this palette
|
|
*/
|
|
int getBlockCount();
|
|
}
|