mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 23:52:11 -07:00
SPIGOT-7214: Add CraftChunk and CraftChunkSnapshot contains biome method
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package org.bukkit;
|
||||
|
||||
import java.util.Collection;
|
||||
import org.bukkit.block.Biome;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.block.BlockState;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
@@ -233,4 +234,12 @@ public interface Chunk extends PersistentDataHolder {
|
||||
* @return if the block is contained within
|
||||
*/
|
||||
boolean contains(@NotNull BlockData block);
|
||||
|
||||
/**
|
||||
* Tests if this chunk contains the specified biome.
|
||||
*
|
||||
* @param biome biome to test
|
||||
* @return if the biome is contained within
|
||||
*/
|
||||
boolean contains(@NotNull Biome biome);
|
||||
}
|
||||
|
@@ -164,4 +164,12 @@ public interface ChunkSnapshot {
|
||||
* @return if the block is contained within
|
||||
*/
|
||||
boolean contains(@NotNull BlockData block);
|
||||
|
||||
/**
|
||||
* Tests if this chunk contains the specified biome.
|
||||
*
|
||||
* @param biome biome to test
|
||||
* @return if the biome is contained within
|
||||
*/
|
||||
boolean contains(@NotNull Biome biome);
|
||||
}
|
||||
|
Reference in New Issue
Block a user