Skip to content

Commit bdb40a3

Browse files
committed
Merge BlockVolume enhancements. Merges #2506
2 parents fa59da1 + 6dbbd37 commit bdb40a3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/java/org/spongepowered/api/world/volume/block/BlockVolume.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@
4646

4747
public interface BlockVolume extends Volume {
4848

49+
/**
50+
* Gets the {@link Palette} in use for this particular {@link Volume}.
51+
* It is not guaranteed that the palette is the same across smaller
52+
* {@link Volume Volumes} that may be contained within this volume.
53+
* An example can be the difference between a {@link org.spongepowered.api.world.chunk.Chunk}
54+
* and {@link org.spongepowered.api.world.World}'s palette.
55+
*
56+
* @return The block palette in use for this volume
57+
*/
58+
Palette<BlockState, BlockType> blockPalette();
59+
4960
BlockState block(int x, int y, int z);
5061

5162
default BlockState block(final Vector3i vector3i) {

0 commit comments

Comments
 (0)