Creating custom BiomeGrid

Discussion in 'Plugin Development' started by The_Spaceman, Sep 15, 2018.

  1. Offline

    The_Spaceman

    I want to make a custom BiomeGrid (it doesn't have to be a BiomeGrid object)

    it has to be fully customiable to create, like the amount of biomes and size per biome.
    eventually I am replacing the Biome with something else, but this is easier to explain and test with.

    The problem is that I have no idea to create someting like this, and the Minecraft version is not really understandable to me...
    Code:
    //in the class net.minecraft.server.<version>.GenLayer
    
    //var1 chunkX
    //var2 chunkZ
    //var3 16 (chunk width)
    //var4 16 (chunk height)
    public BiomeBase[] a(int var1, int var2, int var3, int var4, @Nullable BiomeBase var5) {
        AreaDimension var6 = new AreaDimension(var1, var2, var3, var4);
        AreaLazy var7 = (AreaLazy)this.a.make(var6);
        BiomeBase[] var8 = new BiomeBase[var3 * var4];
        for(int var9 = 0; var9 < var4; ++var9) {
            for(int var10 = 0; var10 < var3; ++var10) {
                var8[var10 + var9 * var3] = BiomeBase.getBiome(var7.a(var10, var9), var5);
            }
        }
        return var8;
    }
    
    but this is not all of it, just some...

    So I nead a custom one, where I can create a BiomeGrid with custom 'biomes'

    I hope someone can help me.

    new:

    anyone? I'm still stuck on this...
     
    Last edited: Sep 24, 2018 at 7:17 AM

Share This Page