25 lines
575 B
Java
25 lines
575 B
Java
package com.terraforged.biome.modifier;
|
|
|
|
import com.terraforged.api.biome.modifier.BiomeModifier;
|
|
import com.terraforged.core.cell.Cell;
|
|
import net.minecraft.world.biome.Biome;
|
|
import net.minecraft.world.biome.Biomes;
|
|
|
|
public class DunesModifier implements BiomeModifier {
|
|
|
|
@Override
|
|
public int priority() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public boolean test(Biome biome) {
|
|
return biome.getCategory() == Biome.Category.DESERT;
|
|
}
|
|
|
|
@Override
|
|
public Biome modify(Biome in, Cell cell, int x, int z) {
|
|
return Biomes.DESERT;
|
|
}
|
|
}
|