BiomesOPlenty/apis/powercrystals/minefactoryreloaded/api/IFactoryRanchable.java
2013-09-21 20:30:47 +10:00

28 lines
913 B
Java
Executable file

package powercrystals.minefactoryreloaded.api;
import net.minecraft.entity.EntityLiving;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import java.util.List;
/**
* @author PowerCrystals
* <p/>
* Defines a ranchable entity for use in the Rancher.
*/
public interface IFactoryRanchable {
/**
* @return The entity being ranched. Must be a subtype of EntityLiving.
*/
public Class<? extends EntityLiving> getRanchableEntity();
/**
* @param world The world this entity is in.
* @param entity The entity instance being ranched.
* @param rancher The rancher instance doing the ranching. Used to access the Rancher's inventory when milking cows, for example.
* @return A list of drops.
*/
public List<ItemStack> ranch(World world, EntityLiving entity, IInventory rancher);
}