GT5-Unofficial/src/main/java/gregtech/api/interfaces/IFoodStat.java
2015-10-21 22:06:25 -04:00

35 lines
No EOL
1.1 KiB
Java

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 {
/**
* 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);
}