    001    /*
    002     * The FML Forge Mod Loader suite.
    003     * Copyright (C) 2012 cpw
    004     *
    005     * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
    006     * Software Foundation; either version 2.1 of the License, or any later version.
    007     *
    008     * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
    009     * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
    010     *
    011     * You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51
    012     * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
    013     */
    014    package cpw.mods.fml.common;
    015
    016    import java.util.Random;
    017
    018    import net.minecraft.src.IChunkProvider;
    019    import net.minecraft.src.World;
    020
    021    /**
    022     * This is called back during world generation.
    023     *
    024     * @author cpw
    025     *
    026     */
    027    public interface IWorldGenerator
    028    {
    029        /**
    030         * Generate some world
    031         *
    032         * @param random the chunk specific {@link Random}.
    033         * @param chunkX the chunk X coordinate of this chunk.
    034         * @param chunkZ the chunk Z coordinate of this chunk.
    035         * @param world : additionalData[0] The minecraft {@link World} we're generating for.
    036         * @param chunkGenerator : additionalData[1] The {@link IChunkProvider} that is generating.
    037         * @param chunkProvider : additionalData[2] {@link IChunkProvider} that is requesting the world generation.
    038         *
    039         */
    040        public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider);
    041    }