2015-01-30 20:16:32 +01:00
|
|
|
package ellpeck.someprettyrandomstuff.items.metalists;
|
|
|
|
|
|
|
|
import ellpeck.someprettyrandomstuff.items.InitItems;
|
2015-02-20 22:45:33 +01:00
|
|
|
import ellpeck.someprettyrandomstuff.util.IName;
|
2015-01-30 20:16:32 +01:00
|
|
|
import net.minecraft.init.Items;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
2015-02-20 22:45:33 +01:00
|
|
|
public enum TheFoods implements IName{
|
2015-01-30 20:16:32 +01:00
|
|
|
|
2015-02-09 17:25:05 +01:00
|
|
|
CHEESE("Cheese", 1, 0.1F, false, 3),
|
|
|
|
PUMPKIN_STEW("PumpkinStew", 10, 0.4F, true, 30),
|
|
|
|
CARROT_JUICE("CarrotJuice", 6, 0.2F, true, 20),
|
|
|
|
FISH_N_CHIPS("FishNChips", 20, 1F, false, 40),
|
|
|
|
FRENCH_FRIES("FrenchFries", 16, 0.7F, false, 32),
|
|
|
|
FRENCH_FRY("FrenchFry", 1, 0.01F, false, 3),
|
|
|
|
SPAGHETTI("Spaghetti", 18, 0.8F, false, 38),
|
|
|
|
NOODLE("Noodle", 1, 0.01F, false, 3),
|
|
|
|
CHOCOLATE_CAKE("ChocolateCake", 16, 0.45F, false, 45),
|
|
|
|
CHOCOLATE("Chocolate", 5, 0.05F, false, 15),
|
|
|
|
TOAST("Toast", 7, 0.4F, false, 25),
|
|
|
|
SUBMARINE_SANDWICH("SubmarineSandwich", 10, 0.7F, false, 40),
|
|
|
|
BIG_COOKIE("BigCookie", 6, 0.1F, false, 20),
|
|
|
|
HAMBURGER("Hamburger", 14, 0.9F, false, 40),
|
|
|
|
PIZZA("Pizza", 20, 1F, false, 45),
|
|
|
|
BAGUETTE("Baguette", 7, 0.2F, false, 25);
|
|
|
|
|
|
|
|
public static void setReturnItems(){
|
|
|
|
SPAGHETTI.returnItem = new ItemStack(Items.bowl);
|
|
|
|
PUMPKIN_STEW.returnItem = new ItemStack(Items.bowl);
|
|
|
|
CARROT_JUICE.returnItem = new ItemStack(Items.glass_bottle);
|
|
|
|
FRENCH_FRIES.returnItem = new ItemStack(InitItems.itemMisc, 1, TheMiscItems.PAPER_CONE.ordinal());
|
|
|
|
FISH_N_CHIPS.returnItem = new ItemStack(InitItems.itemMisc, 1, TheMiscItems.PAPER_CONE.ordinal());
|
|
|
|
}
|
2015-01-30 20:16:32 +01:00
|
|
|
|
|
|
|
public final String name;
|
|
|
|
public final int healAmount;
|
|
|
|
public final float saturation;
|
|
|
|
public final boolean getsDrunken;
|
|
|
|
public final int useDuration;
|
2015-02-09 17:25:05 +01:00
|
|
|
public ItemStack returnItem;
|
2015-01-30 20:16:32 +01:00
|
|
|
|
2015-02-09 17:25:05 +01:00
|
|
|
private TheFoods(String name, int healAmount, float saturation, boolean getsDrunken, int useDuration){
|
2015-01-30 20:16:32 +01:00
|
|
|
this.name = name;
|
|
|
|
this.getsDrunken = getsDrunken;
|
|
|
|
this.healAmount = healAmount;
|
|
|
|
this.saturation = saturation;
|
|
|
|
this.useDuration = useDuration;
|
2015-02-09 17:25:05 +01:00
|
|
|
}
|
|
|
|
|
2015-02-20 22:45:33 +01:00
|
|
|
@Override
|
2015-02-09 17:25:05 +01:00
|
|
|
public String getName(){
|
|
|
|
return this.name;
|
2015-01-30 20:16:32 +01:00
|
|
|
}
|
|
|
|
}
|