package mcjty.lostcities.dimensions.world;

import net.minecraft.util.math.BlockPos;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.BiomeProvider;

import javax.annotation.Nullable;
import java.util.Arrays;
import java.util.List;
import java.util.Random;

public class LostWorldSingleBiomeProvider extends BiomeProvider {
    /**
     * The biome generator object.
     */
    private final Biome biome;

    public LostWorldSingleBiomeProvider(Biome biomeIn) {
        this.biome = biomeIn;
    }

    /**
     * Returns the biome generator
     */

    public Biome getBiome(BlockPos pos) {
        return this.biome;
    }

    public Biome[] getBiomesForGeneration(Biome[] biomes, int x, int z, int width, int height) {
        if (biomes == null || biomes.length < width * height) {
            biomes = new Biome[width * height];
        }

        Arrays.fill(biomes, 0, width * height, this.biome);
        return biomes;
    }

    public Biome[] getBiomes(@Nullable Biome[] oldBiomeList, int x, int z, int width, int depth) {
        if (oldBiomeList == null || oldBiomeList.length < width * depth) {
            oldBiomeList = new Biome[width * depth];
        }

        Arrays.fill(oldBiomeList, 0, width * depth, this.biome);
        return oldBiomeList;
    }

    public Biome[] getBiomes(@Nullable Biome[] listToReuse, int x, int z, int width, int length, boolean cacheFlag) {
        return this.getBiomes(listToReuse, x, z, width, length);
    }

    @Nullable
    public BlockPos findBiomePosition(int x, int z, int range, List<Biome> biomes, Random random) {
        return biomes.contains(this.biome) ? new BlockPos(x - range + random.nextInt(range * 2 + 1), 0, z - range + random.nextInt(range * 2 + 1)) : null;
    }

    public boolean areBiomesViable(int x, int z, int radius, List<Biome> allowed) {
        return allowed.contains(this.biome);
    }

    public boolean isFixedBiome() {
        return true;
    }

    public Biome getFixedBiome() {
        return this.biome;
    }
}
@@ -570,16 +570,30 @@
     */%0A%0A
+    @Override%0A
     publ
@@ -622,24 +622,24 @@
 kPos pos) %7B%0A
-
         retu
@@ -652,32 +652,46 @@
 s.biome;%0A    %7D%0A%0A
+    @Override%0A
     public Biome
@@ -976,32 +976,46 @@
  biomes;%0A    %7D%0A%0A
+    @Override%0A
     public Biome
@@ -1329,32 +1329,46 @@
 omeList;%0A    %7D%0A%0A
+    @Override%0A
     public Biome
@@ -1537,24 +1537,38 @@
 th);%0A    %7D%0A%0A
+    @Override%0A
     @Nullabl
@@ -1823,32 +1823,46 @@
  : null;%0A    %7D%0A%0A
+    @Override%0A
     public boole
@@ -1973,32 +1973,46 @@
 .biome);%0A    %7D%0A%0A
+    @Override%0A
     public boole
@@ -2055,24 +2055,38 @@
 rue;%0A    %7D%0A%0A
+    @Override%0A
     public B

Add missing @Override annotations