GT5-Unofficial/src/main/java/gregtech/api/interfaces/IFoodStat.java

35 lines
1.1 KiB
Java
Raw Normal View History

2015-04-23 16:14:22 +00:00
package gregtech.api.interfaces;
import gregtech.api.items.GT_MetaBase_Item;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumAction;
import net.minecraft.item.ItemStack;
public interface IFoodStat {
2015-10-22 02:15:09 +00:00
/**
* Warning the "aPlayer" Parameter may be null!
*/
public int getFoodLevel(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
/**
* Warning the "aPlayer" Parameter may be null!
*/
public float getSaturation(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
/**
* Warning the "aPlayer" Parameter may be null!
*/
public boolean alwaysEdible(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
/**
* Warning the "aPlayer" Parameter may be null!
*/
public boolean isRotten(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
/**
* Warning the "aPlayer" Parameter may be null!
*/
public EnumAction getFoodAction(GT_MetaBase_Item aItem, ItemStack aStack);
public void onEaten(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
2015-04-23 16:14:22 +00:00
}