Package com.sk89q.worldedit.world.biome

Examples of com.sk89q.worldedit.world.biome.BaseBiome


    }

    @Nullable
    @Override
    public BaseBiome createFromId(int id) {
        return new BaseBiome(id);
    }
View Full Code Here


        BukkitImplAdapter adapter = WorldEditPlugin.getInstance().getBukkitImplAdapter();
        if (adapter != null) {
            List<BaseBiome> biomes = new ArrayList<BaseBiome>();
            for (Biome biome : Biome.values()) {
                int biomeId = adapter.getBiomeId(biome);
                biomes.add(new BaseBiome(biomeId));
            }
            return biomes;
        } else {
            return Collections.emptyList();
        }
View Full Code Here

                throw new ParameterException("An entity is required.");
            }

            BiomeRegistry biomeRegistry = world.getWorldData().getBiomeRegistry();
            List<BaseBiome> knownBiomes = biomeRegistry.getBiomes();
            BaseBiome biome = Biomes.findBiomeByName(knownBiomes, input, biomeRegistry);
            if (biome != null) {
                return biome;
            } else {
                throw new ParameterException(
                        String.format("Can't recognize biome type '%s' -- use /biomelist to list available types", input));
View Full Code Here

        return biomes;
    }

    @Override
    public boolean test(Vector2D vector) {
        BaseBiome biome = extent.getBiome(vector);
        return biomes.contains(biome);
    }
View Full Code Here

TOP

Related Classes of com.sk89q.worldedit.world.biome.BaseBiome

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.