Examples of BiomeGenBase


Examples of net.minecraft.world.biome.BiomeGenBase

    @Override
    public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
    {
        chunkX = chunkX << 4;
        chunkZ = chunkZ << 4;
        final BiomeGenBase biome = world.getBiomeGenForCoords(chunkX, chunkZ);
       
        final boolean biomeIsExtremeJungle = BiomeSettings.EXTREMEJUNGLE.getBiome().isPresent() && biome == BiomeSettings.EXTREMEJUNGLE.getBiome().get();
       
        if (biomeIsExtremeJungle)
        {
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

        return enabled && Extrabiomes.proxy.isModLoaded("newdawn");
    }
   
    public static NewDawnBiome getBiomeIfEnabled(BiomeSettings biome) {
      if( biome != null && biome.isEnabled() ) {
        final BiomeGenBase gen;
        try {
          gen = biome.getBiome().get();
        } catch( Exception e ) {
          return null;
        }
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( !biomeCheck(biome) ) return;

        //LogHelper.info("Gloriosa starting generation in " + biome.biomeName);
   
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,
                chunkX);
       
        if (BiomeSettings.GREENSWAMP.getBiome().isPresent() && biome == BiomeSettings.GREENSWAMP.getBiome().get())
            for (int i = 0; i < 20; i++)
            {
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

  public static CanMobSpawnHandler INSTANCE = new CanMobSpawnHandler();
 
  @SubscribeEvent
  public void canSpawnEvent(CheckSpawn event) {
    BiomeGenBase biome = event.world.getBiomeGenForCoords((int)event.x, (int)event.z);
   
    if(!(biome instanceof ExtrabiomeGenBase)) {
      return;
    }
   
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

    final BiomeSettings[] biomes = BiomeSettings.values();
    // final BiomeSettings[] biomes = { BiomeSettings.AUTUMNWOODS,
    // BiomeSettings.DESERT, BiomeSettings.GREENSWAMP };

    final BiomeGenBase oldBiome = world.getBiomeGenForCoords(x, z);
    BiomeGenBase newBiome = null;
    // newBiome = BiomeSettings.AUTUMNWOODS.getBiome().get();

    do {
      Optional<? extends BiomeGenBase> opt = biomes[world.rand.nextInt(biomes.length)].getBiome();
      if (opt.isPresent()) newBiome = opt.get();
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

    public void generate(Random rand, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
    {
        chunkX = chunkX << 4;
        chunkZ = chunkZ << 4;
        int rarity = 0;
        final BiomeGenBase biome = world.getBiomeGenForCoords(chunkX, chunkX);
       
        if (biome == BiomeGenBase.forest || biome == BiomeGenBase.forestHills
                || BiomeSettings.FORESTEDHILLS.getBiome().isPresent() && biome == BiomeSettings.FORESTEDHILLS.getBiome().get()
                || BiomeSettings.FORESTEDISLAND.getBiome().isPresent() && biome == BiomeSettings.FORESTEDISLAND.getBiome().get()
                || BiomeSettings.RAINFOREST.getBiome().isPresent() && biome == BiomeSettings.RAINFOREST.getBiome().get())
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.MARSH.getBiome().isPresent() && biome == BiomeSettings.MARSH.getBiome().get())
            generateMarsh(random, chunkX, chunkZ, world);
       
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

  }

  protected void registerFlower(BiomeSettings settings, BlockType type) {
    if (!settings.getBiome().isPresent()) return;

        BiomeGenBase biome = settings.getBiome().get();
        final CommonProxy proxy = Extrabiomes.proxy;
        proxy.addGrassPlant(type.block(), type.metadata(), type.weight(), biome);

    final List<BlockType> list;
    if (flowerMaps.containsKey(settings)) {
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase

    @Override
    public void generate(Random rand, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
    {
        chunkX = chunkX << 4;
        chunkZ = chunkZ << 4;
        final BiomeGenBase biome = world.getBiomeGenForCoords(chunkX, chunkZ);
       
    final BiomeSettings settings = BiomeSettings.findBiomeSettings(biome.biomeID);
    if (settings != null && biomeCheck(settings, biome) && flowerMaps.containsKey(settings)) {
      final ExtrabiomeGenBase eBiome = (ExtrabiomeGenBase)biome;
      final int maxFlowers = eBiome.getDecorationSettings().getSetting(Decoration.NEW_FLOWERS);
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.