SPIGOT-7080: Add World#locateNearestBiome
By: Jishuna <joshl5324@gmail.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user