BiomesOPlenty/apis/powercrystals/minefactoryreloaded/api/IFactoryRanchable.java

29 lines
913 B
Java
Raw Normal View History

2013-06-14 06:44:53 +00:00
package powercrystals.minefactoryreloaded.api;
import net.minecraft.entity.EntityLiving;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
2013-09-21 10:30:47 +00:00
import java.util.List;
2013-06-14 06:44:53 +00:00
/**
* @author PowerCrystals
2013-09-21 10:30:47 +00:00
* <p/>
* Defines a ranchable entity for use in the Rancher.
2013-06-14 06:44:53 +00:00
*/
2013-09-21 10:30:47 +00:00
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);
2013-06-14 06:44:53 +00:00
}