blob: 4f4c696e1242ad6bfae456fb9607784c6c03d7c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
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!
*/
int getFoodLevel(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
/**
* Warning the "aPlayer" Parameter may be null!
*/
float getSaturation(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
/**
* Warning the "aPlayer" Parameter may be null!
*/
boolean alwaysEdible(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
/**
* Warning the "aPlayer" Parameter may be null!
*/
boolean isRotten(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
/**
* Warning the "aPlayer" Parameter may be null!
*/
EnumAction getFoodAction(GT_MetaBase_Item aItem, ItemStack aStack);
void onEaten(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer);
}
|