SPIGOT-7080: Add World#locateNearestBiome
By: Jishuna <joshl5324@gmail.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package org.bukkit.craftbukkit.util;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.block.Biome;
|
||||
import org.bukkit.util.BiomeSearchResult;
|
||||
|
||||
public class CraftBiomeSearchResult implements BiomeSearchResult {
|
||||
|
||||
private final Biome biome;
|
||||
private final Location location;
|
||||
|
||||
public CraftBiomeSearchResult(Biome biome, Location location) {
|
||||
this.biome = biome;
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
public Biome getBiome() {
|
||||
return biome;
|
||||
}
|
||||
|
||||
public Location getLocation() {
|
||||
return location;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user