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

33 lines
778 B
Java
Raw Normal View History

2013-06-14 06:44:53 +00:00
package powercrystals.minefactoryreloaded.api;
import net.minecraft.item.ItemStack;
/**
* @author PowerCrystals
2013-09-21 10:30:47 +00:00
* <p/>
* Defines a fertilizer item for use in the Fertilizer.
2013-06-14 06:44:53 +00:00
*/
2013-09-21 10:30:47 +00:00
public interface IFactoryFertilizer {
/**
* @return The ID of this fertilizer item.
*/
int getFertilizerId();
/**
* @return The metadata of this fertilizer item.
*/
int getFertilizerMeta();
/**
* @return The type of fertilizer this is.
*/
FertilizerType getFertilizerType();
/**
* Called when a fertilization is successful. If you set the ItemStack size to 0, it will be deleted by the fertilizer.
*
* @param fertilizer The ItemStack used to fertilize.
*/
void consume(ItemStack fertilizer);
2013-06-14 06:44:53 +00:00
}