    001/*
    002 * Forge Mod Loader
    003 * Copyright (c) 2012-2013 cpw.
    004 * All rights reserved. This program and the accompanying materials
    005 * are made available under the terms of the GNU Lesser Public License v2.1
    006 * which accompanies this distribution, and is available at
    007 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    008 *
    009 * Contributors:
    010 *     cpw - implementation
    011 */
    012
    013package cpw.mods.fml.common.registry;
    014
    015import net.minecraft.entity.Entity;
    016
    017/**
    018 * This interface should be implemented by an Entity that can be 'thrown', like snowballs.
    019 * This was created to mimic ModLoaderMP's 'owner' functionality.
    020 */
    021public interface IThrowableEntity
    022{
    023    /**
    024     * Gets the entity that threw/created this entity.
    025     * @return The owner instance, Null if none.
    026     */
    027    public Entity getThrower();
    028
    029    /**
    030     * Sets the entity that threw/created this entity.
    031     * @param entity The new thrower/creator.
    032     */
    033    public void setThrower(Entity entity);
    034}