    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 */
    013package cpw.mods.fml.common;
    014
    015import java.util.Random;
    016
    017import net.minecraft.item.ItemStack;
    018import net.minecraft.world.World;
    019
    020
    021/**
    022 * Deprecated without replacement, use vanilla DispenserRegistry code
    023 *
    024 * @author cpw
    025 *
    026 */
    027@Deprecated
    028public interface IDispenseHandler
    029{
    030    /**
    031     * Return -1 if you don't want to dispense anything. the other values seem to have specific meanings
    032     * to blockdispenser.
    033     *
    034     * @param x
    035     * @param y
    036     * @param z
    037     * @param xVelocity
    038     * @param zVelocity
    039     * @param world
    040     * @param item
    041     * @param random
    042     * @param entX
    043     * @param entY
    044     * @param entZ
    045     */
    046    @Deprecated
    047    int dispense(double x, double y, double z, int xVelocity, int zVelocity, World world, ItemStack item, Random random, double entX, double entY, double entZ);
    048}