001    /*
002     * The FML Forge Mod Loader suite. Copyright (C) 2012 cpw
003     *
004     * 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
005     * Software Foundation; either version 2.1 of the License, or any later version.
006     *
007     * 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
008     * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
009     *
010     * 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
011     * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
012     */
013    package cpw.mods.fml.common;
014    
015    import java.util.Random;
016    
017    import net.minecraft.src.ItemStack;
018    import net.minecraft.src.World;
019    
020    
021    public interface IDispenseHandler
022    {
023        /**
024         * Return -1 if you don't want to dispense anything. the other values seem to have specific meanings
025         * to blockdispenser.
026         *
027         * @param x
028         * @param y
029         * @param z
030         * @param xVelocity
031         * @param zVelocity
032         * @param world
033         * @param item
034         * @param random
035         * @param entX
036         * @param entY
037         * @param entZ
038         * @return
039         */
040        @Deprecated
041        int dispense(double x, double y, double z, int xVelocity, int zVelocity, World world, ItemStack item, Random random, double entX, double entY, double entZ);
042    }