Package net.minecraft.src

Examples of net.minecraft.src.BiomeGenBase


    static String getBiomeNameAt(int i, int j, int k) {
        if (instance == null) {
            return null;
        } else {
            BiomeGenBase biome = instance.getBiomeGenAt(i, j, k);
            return biome == null ? null : biome.biomeName;
        }
    }
View Full Code Here


      return false;
   }

   @Override
   public BiomeType getBiome(Vector2D arg0) {
      BiomeGenBase biome = this.world.getMinecraftWorld().getBiomeGenForCoords(arg0.getBlockX(), arg0.getBlockZ()); // world.getWorldChunkManager().getBiomeGenAt
      try {
         return MinecraftBiomeType.valueOf(biome.biomeName.toUpperCase(java.util.Locale.ENGLISH)); // name
      } catch(IllegalArgumentException e) {
         // e.printStackTrace();
         return BiomeType.UNKNOWN;
View Full Code Here

    if (!biomesLogged) {
      biomesLogged = true;
      Iterator i$ = biomes.iterator();

      while (i$.hasNext()) {
        BiomeGenBase biome = (BiomeGenBase)i$.next();
        int x = ColorMap.getX((double)biome.temperature, (double)biome.rainfall);
        int y = ColorMap.getY((double)biome.temperature, (double)biome.rainfall);
        logger.finer("setupBiome #%d \"%s\" %06x (%d,%d)", new Object[] {Integer.valueOf(biome.biomeID), biome.biomeName, Integer.valueOf(biome.waterColorMultiplier), Integer.valueOf(x), Integer.valueOf(y)});
      }
    }
View Full Code Here

        if (!s.isEmpty()) {
          BiomeGenBase[] arr$1 = BiomeGenBase.biomeList;
          int len$1 = arr$1.length;

          for (int i$1 = 0; i$1 < len$1; ++i$1) {
            BiomeGenBase biome = arr$1[i$1];

            if (biome != null && biome.biomeName != null && s.equals(biome.biomeName.toLowerCase().replace(" ", ""))) {
              bits.set(biome.biomeID);
            }
          }
View Full Code Here

      }
    }
  }

  static int getBiomeIDAt(int i, int j, int k) {
    BiomeGenBase biome = getBiomeGenAt(i, j, k);
    return biome == null ? BiomeGenBase.biomeList.length : biome.biomeID;
  }
View Full Code Here

  static float getRainfall(int i, int j, int k) {
    return getBiomeGenAt(i, j, k).getFloatRainfall();
  }

  static int getWaterColorMultiplier(int i, int j, int k) {
    BiomeGenBase biome = getBiomeGenAt(i, j, k);

    if (getWaterColorMultiplier != null) {
      try {
        return ((Integer)getWaterColorMultiplier.invoke(biome, new Object[0])).intValue();
      } catch (Throwable var5) {
View Full Code Here

  @Override
  public boolean generate(World world, Random rand, int x, int y,
      int z)
  {
    final BiomeGenBase biome = world.getBiomeGenForCoords(x, z);
    if (biome == BiomeManager.wasteland)
      if (rand.nextInt(4) == 0)
        return new DeadTreeHuge(metaWood).generate(world, rand,
            x, y, z);
View Full Code Here

  @Override
  public boolean generate(World world, Random rand, int x, int y,
      int z)
  {
    final BiomeGenBase biome = world.getBiomeGenForCoords(x, z);
    if (biome == BiomeManager.wasteland)
      if (rand.nextInt(4) == 0)
        return new DeadTreeHuge(metaWood).generate(world, rand,
            x, y, z);
View Full Code Here

TOP

Related Classes of net.minecraft.src.BiomeGenBase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.