mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 12:42:26 +00:00
23 lines
586 B
Java
23 lines
586 B
Java
package net.minecraftforge.common;
|
|
|
|
import net.minecraft.src.Entity;
|
|
|
|
/**
|
|
* This interface should be implemented by an Entity that can be 'thrown', like snowballs.
|
|
* This was created to mimic ModLoaderMP's 'owner' functionality.
|
|
*/
|
|
public interface IThrowableEntity
|
|
{
|
|
/**
|
|
* Gets the entity that threw/created this entity.
|
|
* @return The owner instance, Null if none.
|
|
*/
|
|
public Entity getThrower();
|
|
|
|
/**
|
|
* Sets the entity that threw/created this entity.
|
|
* @param entity The new thrower/creator.
|
|
*/
|
|
public void setThrower(Entity entity);
|
|
}
|