mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-02 14:03:37 +02:00
67 lines
3.1 KiB
Java
67 lines
3.1 KiB
Java
/*
|
|
* This file ("TheFoods.java") is part of the Actually Additions mod for Minecraft.
|
|
* It is created and owned by Ellpeck and distributed
|
|
* under the Actually Additions License to be found at
|
|
* http://ellpeck.de/actaddlicense
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
*
|
|
* © 2015-2016 Ellpeck
|
|
*/
|
|
|
|
package de.ellpeck.actuallyadditions.mod.items.metalists;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.items.InitItems;
|
|
import de.ellpeck.actuallyadditions.mod.util.StackUtil;
|
|
import net.minecraft.init.Items;
|
|
import net.minecraft.item.EnumRarity;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
public enum TheFoods{
|
|
|
|
CHEESE("Cheese", 1, 0.05F, false, 3, EnumRarity.COMMON),
|
|
PUMPKIN_STEW("PumpkinStew", 6, 0.3F, true, 30, EnumRarity.COMMON),
|
|
CARROT_JUICE("CarrotJuice", 4, 0.2F, true, 20, EnumRarity.COMMON),
|
|
FISH_N_CHIPS("FishNChips", 14, 0.65F, false, 40, EnumRarity.UNCOMMON),
|
|
FRENCH_FRIES("FrenchFries", 10, 0.6F, false, 32, EnumRarity.COMMON),
|
|
FRENCH_FRY("FrenchFry", 2, 0.025F, false, 3, EnumRarity.COMMON),
|
|
SPAGHETTI("Spaghetti", 7, 0.4F, false, 38, EnumRarity.COMMON),
|
|
NOODLE("Noodle", 1, 0.01F, false, 3, EnumRarity.COMMON),
|
|
CHOCOLATE_CAKE("ChocolateCake", 16, 0.8F, false, 45, EnumRarity.UNCOMMON),
|
|
CHOCOLATE("Chocolate", 3, 0.3F, false, 15, EnumRarity.COMMON),
|
|
TOAST("Toast", 3, 0.08F, false, 25, EnumRarity.COMMON),
|
|
SUBMARINE_SANDWICH("SubmarineSandwich", 9, 0.4F, false, 40, EnumRarity.UNCOMMON),
|
|
BIG_COOKIE("BigCookie", 4, 0.25F, false, 20, EnumRarity.UNCOMMON),
|
|
HAMBURGER("Hamburger", 13, 0.65F, false, 40, EnumRarity.COMMON),
|
|
PIZZA("Pizza", 16, 0.8F, false, 45, EnumRarity.UNCOMMON),
|
|
BAGUETTE("Baguette", 6, 0.5F, false, 25, EnumRarity.COMMON),
|
|
RICE("Rice", 2, 0.05F, false, 10, EnumRarity.UNCOMMON),
|
|
RICE_BREAD("RiceBread", 6, 0.5F, false, 25, EnumRarity.UNCOMMON),
|
|
DOUGHNUT("Doughnut", 2, 0.1F, false, 10, EnumRarity.EPIC),
|
|
CHOCOLATE_TOAST("ChocolateToast", 5, 0.2F, false, 40, EnumRarity.RARE),
|
|
BACON("Bacon", 4, 0.1F, false, 30, EnumRarity.COMMON);
|
|
|
|
public final String name;
|
|
public final int healAmount;
|
|
public final float saturation;
|
|
public final boolean getsDrunken;
|
|
public final int useDuration;
|
|
public final EnumRarity rarity;
|
|
public ItemStack returnItem = StackUtil.getNull();
|
|
|
|
TheFoods(String name, int healAmount, float saturation, boolean getsDrunken, int useDuration, EnumRarity rarity){
|
|
this.name = name;
|
|
this.getsDrunken = getsDrunken;
|
|
this.healAmount = healAmount;
|
|
this.saturation = saturation;
|
|
this.useDuration = useDuration;
|
|
this.rarity = rarity;
|
|
}
|
|
|
|
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());
|
|
}
|
|
} |