ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/items/metalists/TheFoods.java

69 lines
2.9 KiB
Java
Raw Normal View History

2015-08-29 14:33:25 +02:00
/*
2016-05-16 22:52:27 +02:00
* This file ("TheFoods.java") is part of the Actually Additions mod for Minecraft.
2015-08-29 14:33:25 +02:00
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-05-16 22:52:27 +02:00
* http://ellpeck.de/actaddlicense
2015-08-29 14:33:25 +02:00
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2017-01-01 16:23:26 +01:00
* © 2015-2017 Ellpeck
2015-08-29 14:33:25 +02:00
*/
2016-01-05 04:47:35 +01:00
package de.ellpeck.actuallyadditions.mod.items.metalists;
2015-01-30 20:16:32 +01:00
import de.ellpeck.actuallyadditions.mod.items.ActuallyItems;
import de.ellpeck.actuallyadditions.mod.util.StackUtil;
2015-01-30 20:16:32 +01:00
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.item.Rarity;
2015-01-30 20:16:32 +01:00
@Deprecated
2019-05-02 09:10:29 +02:00
public enum TheFoods {
CHEESE("cheese", 1, 0.05F, false, 3, Rarity.COMMON),
PUMPKIN_STEW("pumpkin_stew", 6, 0.3F, true, 30, Rarity.COMMON),
CARROT_JUICE("carrot_juice", 4, 0.2F, true, 20, Rarity.COMMON),
FISH_N_CHIPS("fish_n_chips", 14, 0.65F, false, 40, Rarity.UNCOMMON),
FRENCH_FRIES("french_fries", 10, 0.6F, false, 32, Rarity.COMMON),
FRENCH_FRY("french_fry", 2, 0.025F, false, 3, Rarity.COMMON),
SPAGHETTI("spaghetti", 7, 0.4F, false, 38, Rarity.COMMON),
NOODLE("noodle", 1, 0.01F, false, 3, Rarity.COMMON),
CHOCOLATE_CAKE("chocolate_cake", 16, 0.8F, false, 45, Rarity.UNCOMMON),
CHOCOLATE("chocolate", 3, 0.3F, false, 15, Rarity.COMMON),
TOAST("toast", 3, 0.08F, false, 25, Rarity.COMMON),
SUBMARINE_SANDWICH("submarine_sandwich", 9, 0.4F, false, 40, Rarity.UNCOMMON),
BIG_COOKIE("big_cookie", 4, 0.25F, false, 20, Rarity.UNCOMMON),
HAMBURGER("hamburger", 13, 0.65F, false, 40, Rarity.COMMON),
PIZZA("pizza", 16, 0.8F, false, 45, Rarity.UNCOMMON),
BAGUETTE("baguette", 6, 0.5F, false, 25, Rarity.COMMON),
RICE("rice", 2, 0.05F, false, 10, Rarity.UNCOMMON),
RICE_BREAD("rice_bread", 6, 0.5F, false, 25, Rarity.UNCOMMON),
DOUGHNUT("doughnut", 2, 0.1F, false, 10, Rarity.EPIC),
CHOCOLATE_TOAST("chocolate_toast", 5, 0.2F, false, 40, Rarity.RARE),
BACON("bacon", 4, 0.1F, false, 30, Rarity.COMMON);
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;
public final Rarity rarity;
2017-11-02 22:49:53 +01:00
public ItemStack returnItem = StackUtil.getEmpty();
2015-10-03 10:19:40 +02:00
TheFoods(String name, int healAmount, float saturation, boolean getsDrunken, int useDuration, Rarity rarity) {
2015-01-30 20:16:32 +01:00
this.name = name;
this.getsDrunken = getsDrunken;
this.healAmount = healAmount;
this.saturation = saturation;
this.useDuration = useDuration;
this.rarity = rarity;
}
2019-05-02 09:10:29 +02:00
public static void setReturnItems() {
2016-04-20 21:39:03 +02:00
SPAGHETTI.returnItem = new ItemStack(Items.BOWL);
PUMPKIN_STEW.returnItem = new ItemStack(Items.BOWL);
CARROT_JUICE.returnItem = new ItemStack(Items.GLASS_BOTTLE);
2021-05-02 18:10:21 +02:00
FRENCH_FRIES.returnItem = new ItemStack(ActuallyItems.PAPER_CONE.get());
FISH_N_CHIPS.returnItem = new ItemStack(ActuallyItems.PAPER_CONE.get());
2015-10-03 10:16:18 +02:00
}
}