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

37 lines
1.0 KiB
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.item.ItemStack;
import net.minecraft.world.World;
/**
* @author PowerCrystals
2013-09-21 10:30:47 +00:00
* <p/>
* Defines a syringe for use in the Vet machine.
2013-06-14 06:44:53 +00:00
*/
2013-09-21 10:30:47 +00:00
public interface ISyringe {
/**
* Called when the vet is deciding if it should use this syringe.
*
*
*
* @param world The world instance.
* @param entity The entity being injected.
* @param syringe The syringe ItemStack.
* @return True if the entity can be injected by this syringe.
*/
public boolean canInject(World world, EntityLiving entity, ItemStack syringe);
/**
* Called to perform an injection.
*
*
*
* @param world The world instance.
* @param entity The entity being injected.
* @param syringe The syringe ItemStack.
* @return True if injection was successful.
*/
public boolean inject(World world, EntityLiving entity, ItemStack syringe);
2013-06-14 06:44:53 +00:00
}