mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-09 18:08:27 +01:00
Updated MyBiomeGrid to 1.15 API
This commit is contained in:
parent
3332b65b86
commit
d58743bae8
@ -38,4 +38,13 @@ public class MyBiomeGrid implements BiomeGrid {
|
|||||||
public void setBiome(int x, int z, Biome bio) {
|
public void setBiome(int x, int z, Biome bio) {
|
||||||
map.put(new Vector(x,0,z), bio);
|
map.put(new Vector(x,0,z), bio);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public Biome getBiome(int x, int y, int z) {
|
||||||
|
return map.getOrDefault(new Vector(x,y,z), defaultBiome);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public void setBiome(int x, int y, int z, Biome bio) {
|
||||||
|
map.put(new Vector(x, y, z), bio);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user