Examples of BiomeGenBase


Examples of net.minecraft.world.biome.BiomeGenBase

        this.api = api;
    }
   
    private void doPopulate(Random rand, World world, int x, int z)
    {
        final BiomeGenBase biome = world.getWorldChunkManager()
                .getBiomeGenAt(x, z);
       
        if (((BiomeSettings.MOUNTAINDESERT.getBiome().isPresent() && biome == BiomeSettings.MOUNTAINDESERT.getBiome().get())
                || (BiomeSettings.WASTELAND.getBiome().isPresent() && biome == BiomeSettings.WASTELAND.getBiome().get()))
                && rand.nextFloat() > 0.97)
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

            World world, IChunkProvider chunkGenerator,
            IChunkProvider chunkProvider)
    {
        chunkX = chunkX << 4;
        chunkZ = chunkZ << 4;
        final BiomeGenBase biome = world.getBiomeGenForCoords(chunkX,
                chunkZ);
       
        if (BiomeSettings.MOUNTAINDESERT.getBiome().isPresent() && biome == BiomeSettings.MOUNTAINDESERT.getBiome().get())
            generateRareDesertWell(random, chunkX, chunkZ, world);
    }
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

   
    public static void addTerrainBlockstoBiome(BiomeSettings biome, Block topBlock, Block fillerBlock)
    {
        if (!biome.getBiome().isPresent())
            return;
        final BiomeGenBase baseBiome = biome.getBiome().get();
        baseBiome.topBlock = topBlock;
        baseBiome.fillerBlock = fillerBlock;
    }
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

            World world, IChunkProvider chunkGenerator,
            IChunkProvider chunkProvider)
    {
        chunkX = chunkX << 4;
        chunkZ = chunkZ << 4;
        final BiomeGenBase biome = world.getBiomeGenForCoords(chunkX,
                chunkZ);
        if (!BiomeSettings.MINIJUNGLE.getBiome().isPresent() || biome != BiomeSettings.MINIJUNGLE.getBiome().get())
            return;
       
        // 1 to 3 attempts with with a bias toward 2
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

      BiomeGenBase[] list = getBiomeList();
     
        for(int i = 0; i < list.length; i++) {
            if (!BiomeMap.byBiomeID(i).isDefault()) continue;
            BiomeGenBase bb = list[i];
            if(bb != null) {
                String id = bb.biomeName;
                float tmp = bb.temperature, hum = bb.rainfall;
                BiomeMap m = new BiomeMap(i, id, tmp, hum);
                Log.verboseinfo("Add custom biome [" + m.toString() + "] (" + i + ")");
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

    private String[] getBiomeNames() {
        BiomeGenBase[] list = getBiomeList();
        String[] lst = new String[list.length];
        for(int i = 0; i < list.length; i++) {
            BiomeGenBase bb = list[i];
            if (bb != null) {
                lst[i] = bb.biomeName;
            }
        }
        return lst;
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

    public Block getNullOverride(World world, int x, int z) {
        if (world == null)
            return Blocks.stone;

        BiomeGenBase biome = world.getBiomeGenForCoords(x, z);
        if (biome == BiomeGenBase.hell)
            return Blocks.netherrack;

        if (biome == BiomeGenBase.sky)
            return Blocks.end_stone;
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

  @Override
  public boolean canSpawn(World world, double x, double y, double z) {
    if(!canFly(world))
      return false;

    BiomeGenBase biome = Utils.getBiomeAt(world, (int)x, (int)z);
    if(getGenome().getPrimary().getSpawnBiomes().size() > 0) {
      boolean noneMatched = true;

      if(getGenome().getPrimary().strictSpawnMatch()) {
        BiomeDictionary.Type[] types = BiomeDictionary.getTypesForBiome(biome);
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

        int divider = 0;
        for (int x = -distance; x <= distance; ++x)
        {
            for (int z = -distance; z <= distance; ++z)
            {
                BiomeGenBase biome = world.getBiomeGenForCoords(playerX + x, playerZ + z);
                int colour = biome.getSkyColorByTemp(biome.getFloatTemperature(playerX + x, playerY, playerZ + z));
                r += (colour & 0xFF0000) >> 16;
                g += (colour & 0x00FF00) >> 8;
                b += colour & 0x0000FF;
                divider++;
            }
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

    excludedBiomes.add(BiomeGenBase.frozenOcean.biomeID);
    excludedBiomes.add(BiomeGenBase.beach.biomeID);
    biomesToSearch.removeAll(excludedBiomes);

    // If we are in a valid biome, we point to ourself.
    BiomeGenBase biome = world.getBiomeGenForCoords((int) player.posX, (int) player.posZ);
    if (biomesToSearch.contains(biome.biomeID)) {
      Proxies.common.setBiomefinderCoordinates(player, new ChunkCoordinates((int) player.posX, (int) player.posY, (int) player.posZ));
      return;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.