SPIGOT-7080: Add World#locateNearestBiome

By: Jishuna <joshl5324@gmail.com>
This commit is contained in:
Bukkit/Spigot
2023-10-09 20:11:42 +11:00
parent af63feab14
commit 199105c1d5
2 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package org.bukkit.util;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.block.Biome;
import org.jetbrains.annotations.NotNull;
/**
* Holds the result of searching for a biome.
*
* @see World#locateNearestBiome(Location, int, Biome...)
* @see World#locateNearestBiome(Location, int, int, int, Biome...)
*/
public interface BiomeSearchResult {
/**
* Return the biome which was found.
*
* @return the found biome.
*/
@NotNull
Biome getBiome();
/**
* Return the location of the biome.
*
* @return the location the biome was found.
*/
@NotNull
Location getLocation();
}