Getting biome data: temperature and humidity

Discussion in 'Plugin Development' started by NesCafe, Feb 1, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    NesCafe

    I have a problem with getting biome data. I mean exactly temperature and humidity but not block.getBiome() method. It is necessary for calculating grass height in my Wild Grass plugin. If anybody knows how to solve this, please report here.
     
  2. Offline

    mjmr89

    I don't think theres anything like that. I think there are biome classes in the original, decompiled minecraft.jar source, but I think it would be a pain in the ass to use it mainly because of the lack of description and all. I think the closest you'll find to what you're looking for is http://www.minecraftwiki.net/wiki/Biome. Maybe someone more knowledgeable than I am can help more.

    P.S. I don't mean to be an ass, but you spelled wonderful wrong in your sig :)
     
  3. Offline

    NesCafe

    Ah, sometimes I have problems with english. :) I already read this wiki and even looked in decompiled minecraft.jar. But I want to make a plugin using bukkit API, without modifying craftbukkit.jar. Where can I post request for getBiomeTemperature()/getBiomeHumidity() method or something that to be add in bukkit?

    Wild Grass server mod is using getGrassBiomeScale:
    Code:
    // from BlockGrass class //
    public double getGrassBiomeScale(World world, int i, int j, int k)
    {
        world.func_4077_a().func_4065_a(i, k, 1, 1);
        double d = world.func_4077_a().temperature[0];
        double d1 = world.func_4077_a().humidity[0];
        return d * d1;
    }
    
    // from World class //
    public WorldChunkManager func_4077_a()
    {
        return worldProvider.worldChunkMgr;
    }
    
    // from WorldChunkManager class//
    public MobSpawnerBase[] func_4065_a(int i, int j, int k, int l)
    {
        field_4256_d = loadBlockGeneratorData(field_4256_d, i, j, k, l);
        return field_4256_d;
    }
     
  4. Offline

    Teem85

    I <3 you because you look to get wildgrass work with bukkit
     
  5. Offline

    fullwall

  6. Offline

    weasel5i2

Thread Status:
Not open for further replies.

Share This Page