Files
DeltaZern/paper-api/src/main/java/org/bukkit/structure/Palette.java
T
Nassim Jahnke f00727c57e 1.21.5
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>
2025-04-12 17:27:00 +02:00

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();
}