mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-24 05:54:47 +00:00
Move ET food
This commit is contained in:
1 parent
c34ab342d9
commit
822920d3b2
6 files changed
+392
-425
No files matched your search
@@ -1,24 +1,12 @@
|
||||
package binnie.extratrees.genetics;
|
||||
|
||||
import binnie.extratrees.item.ETItems;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import com.gtnewhorizon.gtnhlib.reflect.Fields;
|
||||
|
||||
import binnie.Binnie;
|
||||
import binnie.core.util.I18N;
|
||||
import binnie.extratrees.block.FruitPod;
|
||||
import binnie.extratrees.config.ETConfig;
|
||||
import binnie.extratrees.item.Food;
|
||||
import binnie.extratrees.item.ETItems;
|
||||
import binnie.extratrees.item.FoodItems;
|
||||
import com.gtnewhorizon.gtnhlib.reflect.Fields;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import forestry.api.arboriculture.EnumTreeChromosome;
|
||||
@@ -31,6 +19,15 @@ import forestry.api.genetics.IAlleleSpecies;
|
||||
import forestry.api.genetics.IFruitFamily;
|
||||
import forestry.arboriculture.FruitProviderNone;
|
||||
import forestry.arboriculture.genetics.alleles.AlleleTreeSpecies;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public enum ExtraTreeFruitGene implements IAlleleFruit, IFruitProvider {
|
||||
|
||||
@@ -137,121 +134,121 @@ public enum ExtraTreeFruitGene implements IAlleleFruit, IFruitProvider {
|
||||
AlleleManager.alleleRegistry.registerFruitFamily(familyCitrus);
|
||||
ExtraTreeFruitGene.Apple.addProduct(new ItemStack(Items.apple), 1.0f);
|
||||
ExtraTreeFruitGene.Apple.setFamily(familyPome);
|
||||
ExtraTreeFruitGene.Crabapple.addProduct(Food.Crabapple.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Crabapple.addProduct(FoodItems.Items.Crabapple.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Crabapple.setFamily(familyPome);
|
||||
ExtraTreeFruitGene.Orange.addProduct(Food.Orange.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Orange.addProduct(FoodItems.Items.Orange.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Orange.setFamily(familyCitrus);
|
||||
ExtraTreeFruitGene.Manderin.addProduct(Food.Manderin.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Manderin.addProduct(FoodItems.Items.Manderin.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Manderin.setFamily(familyCitrus);
|
||||
ExtraTreeFruitGene.Tangerine.addProduct(Food.Tangerine.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Tangerine.addProduct(FoodItems.Items.Tangerine.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Tangerine.setFamily(familyCitrus);
|
||||
ExtraTreeFruitGene.Satsuma.addProduct(Food.Satsuma.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Satsuma.addProduct(FoodItems.Items.Satsuma.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Satsuma.setFamily(familyCitrus);
|
||||
ExtraTreeFruitGene.KeyLime.addProduct(Food.KeyLime.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.KeyLime.addProduct(FoodItems.Items.KeyLime.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.KeyLime.setFamily(familyCitrus);
|
||||
ExtraTreeFruitGene.Lime.addProduct(Food.Lime.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Lime.addProduct(FoodItems.Items.Lime.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Lime.setFamily(familyCitrus);
|
||||
ExtraTreeFruitGene.FingerLime.addProduct(Food.FingerLime.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.FingerLime.addProduct(FoodItems.Items.FingerLime.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.FingerLime.setFamily(familyCitrus);
|
||||
ExtraTreeFruitGene.Pomelo.addProduct(Food.Pomelo.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Pomelo.addProduct(FoodItems.Items.Pomelo.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Pomelo.setFamily(familyCitrus);
|
||||
ExtraTreeFruitGene.Grapefruit.addProduct(Food.Grapefruit.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Grapefruit.addProduct(FoodItems.Items.Grapefruit.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Grapefruit.setFamily(familyCitrus);
|
||||
ExtraTreeFruitGene.Kumquat.addProduct(Food.Kumquat.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Kumquat.addProduct(FoodItems.Items.Kumquat.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Kumquat.setFamily(familyCitrus);
|
||||
ExtraTreeFruitGene.Citron.addProduct(Food.Citron.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Citron.addProduct(FoodItems.Items.Citron.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Citron.setFamily(familyCitrus);
|
||||
ExtraTreeFruitGene.BuddhaHand.addProduct(Food.BuddhaHand.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.BuddhaHand.addProduct(FoodItems.Items.BuddhaHand.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.BuddhaHand.setFamily(familyCitrus);
|
||||
ExtraTreeFruitGene.Blackthorn.addProduct(Food.Blackthorn.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Blackthorn.addProduct(FoodItems.Items.Blackthorn.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Blackthorn.setFamily(familyPrune);
|
||||
ExtraTreeFruitGene.CherryPlum.addProduct(Food.CherryPlum.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.CherryPlum.addProduct(FoodItems.Items.CherryPlum.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.CherryPlum.setFamily(familyPrune);
|
||||
ExtraTreeFruitGene.Peach.addProduct(Food.Peach.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Peach.addProduct(FoodItems.Items.Peach.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Peach.setFamily(familyPrune);
|
||||
ExtraTreeFruitGene.Nectarine.addProduct(Food.Nectarine.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Nectarine.addProduct(FoodItems.Items.Nectarine.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Nectarine.setFamily(familyPrune);
|
||||
ExtraTreeFruitGene.Apricot.addProduct(Food.Apricot.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Apricot.addProduct(FoodItems.Items.Apricot.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Apricot.setFamily(familyPrune);
|
||||
ExtraTreeFruitGene.Almond.addProduct(Food.Almond.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Almond.addProduct(FoodItems.Items.Almond.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Almond.setFamily(familyPrune);
|
||||
ExtraTreeFruitGene.WildCherry.addProduct(Food.WildCherry.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.WildCherry.addProduct(FoodItems.Items.WildCherry.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.WildCherry.setFamily(familyPrune);
|
||||
ExtraTreeFruitGene.SourCherry.addProduct(Food.SourCherry.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.SourCherry.addProduct(FoodItems.Items.SourCherry.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.SourCherry.setFamily(familyPrune);
|
||||
ExtraTreeFruitGene.BlackCherry.addProduct(Food.BlackCherry.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.BlackCherry.addProduct(FoodItems.Items.BlackCherry.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.BlackCherry.setFamily(familyPrune);
|
||||
ExtraTreeFruitGene.Hazelnut.addProduct(Food.Hazelnut.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Hazelnut.addProduct(FoodItems.Items.Hazelnut.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Hazelnut.setFamily(familyNuts);
|
||||
ExtraTreeFruitGene.Butternut.addProduct(Food.Butternut.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Butternut.addProduct(FoodItems.Items.Butternut.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Butternut.setFamily(familyNuts);
|
||||
ExtraTreeFruitGene.Beechnut.addProduct(Food.Beechnut.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Beechnut.addProduct(FoodItems.Items.Beechnut.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Beechnut.setFamily(familyNuts);
|
||||
ExtraTreeFruitGene.Pecan.addProduct(Food.Pecan.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Pecan.addProduct(FoodItems.Items.Pecan.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Pecan.setFamily(familyNuts);
|
||||
ExtraTreeFruitGene.Banana.addProduct(Food.Banana.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Banana.addProduct(FoodItems.Items.Banana.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Banana.setFamily(familyJungle);
|
||||
ExtraTreeFruitGene.RedBanana.addProduct(Food.RedBanana.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.RedBanana.addProduct(FoodItems.Items.RedBanana.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.RedBanana.setFamily(familyJungle);
|
||||
ExtraTreeFruitGene.Plantain.addProduct(Food.Plantain.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Plantain.addProduct(FoodItems.Items.Plantain.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Plantain.setFamily(familyJungle);
|
||||
ExtraTreeFruitGene.BrazilNut.addProduct(Food.BrazilNut.get(4), 1.0f);
|
||||
ExtraTreeFruitGene.BrazilNut.addProduct(FoodItems.Items.BrazilNut.get(4), 1.0f);
|
||||
ExtraTreeFruitGene.BrazilNut.setFamily(familyNuts);
|
||||
ExtraTreeFruitGene.Fig.addProduct(Food.Fig.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Fig.addProduct(FoodItems.Items.Fig.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Fig.setFamily(familyPrune);
|
||||
ExtraTreeFruitGene.Acorn.addProduct(Food.Acorn.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Acorn.addProduct(FoodItems.Items.Acorn.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Acorn.setFamily(familyNuts);
|
||||
ExtraTreeFruitGene.Elderberry.addProduct(Food.Elderberry.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Elderberry.addProduct(FoodItems.Items.Elderberry.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Elderberry.setFamily(familyPrune);
|
||||
ExtraTreeFruitGene.Olive.addProduct(Food.Olive.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Olive.addProduct(FoodItems.Items.Olive.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Olive.setFamily(familyPrune);
|
||||
ExtraTreeFruitGene.GingkoNut.addProduct(Food.GingkoNut.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.GingkoNut.addProduct(FoodItems.Items.GingkoNut.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.GingkoNut.setFamily(familyNuts);
|
||||
ExtraTreeFruitGene.Coffee.addProduct(Food.Coffee.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Coffee.addProduct(FoodItems.Items.Coffee.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Coffee.setFamily(familyJungle);
|
||||
ExtraTreeFruitGene.Pear.addProduct(Food.Pear.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Pear.addProduct(FoodItems.Items.Pear.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Pear.setFamily(familyPome);
|
||||
ExtraTreeFruitGene.OsangeOsange.addProduct(Food.OsangeOrange.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.OsangeOsange.addProduct(FoodItems.Items.OsangeOrange.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.OsangeOsange.setFamily(familyPome);
|
||||
ExtraTreeFruitGene.Clove.addProduct(Food.Clove.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Clove.addProduct(FoodItems.Items.Clove.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Clove.setFamily(familyNuts);
|
||||
ExtraTreeFruitGene.Blackcurrant.addProduct(Food.Blackcurrant.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Blackcurrant.addProduct(FoodItems.Items.Blackcurrant.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Blackcurrant.setFamily(familyBerry);
|
||||
ExtraTreeFruitGene.Redcurrant.addProduct(Food.Redcurrant.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Redcurrant.addProduct(FoodItems.Items.Redcurrant.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Redcurrant.setFamily(familyBerry);
|
||||
ExtraTreeFruitGene.Blackberry.addProduct(Food.Blackberry.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Blackberry.addProduct(FoodItems.Items.Blackberry.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Blackberry.setFamily(familyBerry);
|
||||
ExtraTreeFruitGene.Raspberry.addProduct(Food.Raspberry.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Raspberry.addProduct(FoodItems.Items.Raspberry.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Raspberry.setFamily(familyBerry);
|
||||
ExtraTreeFruitGene.Blueberry.addProduct(Food.Blueberry.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Blueberry.addProduct(FoodItems.Items.Blueberry.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Blueberry.setFamily(familyBerry);
|
||||
ExtraTreeFruitGene.Cranberry.addProduct(Food.Cranberry.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Cranberry.addProduct(FoodItems.Items.Cranberry.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Cranberry.setFamily(familyBerry);
|
||||
ExtraTreeFruitGene.Juniper.addProduct(Food.Juniper.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Juniper.addProduct(FoodItems.Items.Juniper.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Juniper.setFamily(familyBerry);
|
||||
ExtraTreeFruitGene.Gooseberry.addProduct(Food.Gooseberry.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Gooseberry.addProduct(FoodItems.Items.Gooseberry.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.Gooseberry.setFamily(familyBerry);
|
||||
ExtraTreeFruitGene.GoldenRaspberry.addProduct(Food.GoldenRaspberry.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.GoldenRaspberry.addProduct(FoodItems.Items.GoldenRaspberry.get(2), 1.0f);
|
||||
ExtraTreeFruitGene.GoldenRaspberry.setFamily(familyBerry);
|
||||
ExtraTreeFruitGene.Coconut.addProduct(Food.Coconut.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Coconut.addProduct(FoodItems.Items.Coconut.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Coconut.setFamily(familyJungle);
|
||||
ExtraTreeFruitGene.Cashew.addProduct(Food.Cashew.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Cashew.addProduct(FoodItems.Items.Cashew.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Cashew.setFamily(familyJungle);
|
||||
ExtraTreeFruitGene.Avacado.addProduct(Food.Avacado.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Avacado.addProduct(FoodItems.Items.Avacado.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Avacado.setFamily(familyJungle);
|
||||
ExtraTreeFruitGene.Nutmeg.addProduct(Food.Nutmeg.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Nutmeg.addProduct(FoodItems.Items.Nutmeg.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Nutmeg.setFamily(familyJungle);
|
||||
ExtraTreeFruitGene.Allspice.addProduct(Food.Allspice.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Allspice.addProduct(FoodItems.Items.Allspice.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Allspice.setFamily(familyJungle);
|
||||
ExtraTreeFruitGene.Chilli.addProduct(Food.Chilli.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Chilli.addProduct(FoodItems.Items.Chilli.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Chilli.setFamily(familyJungle);
|
||||
ExtraTreeFruitGene.StarAnise.addProduct(Food.StarAnise.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.StarAnise.addProduct(FoodItems.Items.StarAnise.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.StarAnise.setFamily(familyJungle);
|
||||
ExtraTreeFruitGene.Mango.addProduct(Food.Mango.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Mango.addProduct(FoodItems.Items.Mango.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Mango.setFamily(familyPome);
|
||||
ExtraTreeFruitGene.Starfruit.addProduct(Food.Starfruit.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Starfruit.addProduct(FoodItems.Items.Starfruit.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Starfruit.setFamily(familyJungle);
|
||||
ExtraTreeFruitGene.Candlenut.addProduct(Food.Candlenut.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Candlenut.addProduct(FoodItems.Items.Candlenut.get(1), 1.0f);
|
||||
ExtraTreeFruitGene.Candlenut.setFamily(familyJungle);
|
||||
|
||||
if (ETConfig.alterLemon) {
|
||||
@@ -436,7 +433,7 @@ public enum ExtraTreeFruitGene implements IAlleleFruit, IFruitProvider {
|
||||
|
||||
for (ItemStack stack : products.keySet()) {
|
||||
if (stack.getItem() == ETItems.itemFood) {
|
||||
return Food.values()[stack.getItemDamage()].toString();
|
||||
return ETItems.itemFood.getName(stack.getItemDamage());
|
||||
}
|
||||
}
|
||||
return "NoFruit";
|
||||
|
||||
@@ -7,7 +7,7 @@ public class ETItems {
|
||||
public final static DamageItems itemMisc = new ETMisc();
|
||||
public final static Item itemDictionary = new ItemDictionary();
|
||||
public static Item itemDictionaryLepi;
|
||||
public static Item itemFood = new ItemFood();
|
||||
public static FoodItems itemFood = new FoodItems();
|
||||
public static Item itemHammer = new ItemHammer(false);
|
||||
public static Item itemDurableHammer = new ItemHammer(true);
|
||||
}
|
||||
@@ -1,208 +0,0 @@
|
||||
package binnie.extratrees.item;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import binnie.Binnie;
|
||||
import binnie.core.Mods;
|
||||
import binnie.core.item.IItemMisc;
|
||||
import binnie.core.util.I18N;
|
||||
import binnie.extratrees.ExtraTrees;
|
||||
import forestry.api.recipes.RecipeManagers;
|
||||
|
||||
public enum Food implements IItemMisc {
|
||||
|
||||
Crabapple(2),
|
||||
Orange(4),
|
||||
Kumquat(2),
|
||||
Lime(2),
|
||||
WildCherry(2),
|
||||
SourCherry(2),
|
||||
BlackCherry(2),
|
||||
Blackthorn(3),
|
||||
CherryPlum(3),
|
||||
Almond(1),
|
||||
Apricot(4),
|
||||
Grapefruit(4),
|
||||
Peach(4),
|
||||
Satsuma(3),
|
||||
BuddhaHand(3),
|
||||
Citron(3),
|
||||
FingerLime(3),
|
||||
KeyLime(2),
|
||||
Manderin(3),
|
||||
Nectarine(3),
|
||||
Pomelo(3),
|
||||
Tangerine(3),
|
||||
Pear(4),
|
||||
SandPear(2),
|
||||
Hazelnut(2),
|
||||
Butternut(1),
|
||||
Beechnut(0),
|
||||
Pecan(0),
|
||||
Banana(4),
|
||||
RedBanana(4),
|
||||
Plantain(2),
|
||||
BrazilNut(0),
|
||||
Fig(2),
|
||||
Acorn(0),
|
||||
Elderberry(1),
|
||||
Olive(1),
|
||||
GingkoNut(1),
|
||||
Coffee(0),
|
||||
OsangeOrange(1),
|
||||
Clove(0),
|
||||
Papayimar(8),
|
||||
Blackcurrant(2),
|
||||
Redcurrant(2),
|
||||
Blackberry(2),
|
||||
Raspberry(2),
|
||||
Blueberry(2),
|
||||
Cranberry(2),
|
||||
Juniper(0),
|
||||
Gooseberry(2),
|
||||
GoldenRaspberry(2),
|
||||
Coconut(2),
|
||||
Cashew(0),
|
||||
Avacado(2),
|
||||
Nutmeg(0),
|
||||
Allspice(0),
|
||||
Chilli(2),
|
||||
StarAnise(0),
|
||||
Mango(4),
|
||||
Starfruit(2),
|
||||
Candlenut(0);
|
||||
|
||||
private IIcon icon;
|
||||
private final int hunger;
|
||||
private final List<String> ores;
|
||||
|
||||
Food(int hunger) {
|
||||
ores = new ArrayList<>();
|
||||
this.hunger = hunger;
|
||||
}
|
||||
|
||||
public static void registerOreDictionary() {
|
||||
Food.Crabapple.ore("Apple").ore("Crabapple");
|
||||
Food.Orange.ore("Orange");
|
||||
Food.Kumquat.ore("Kumquat");
|
||||
Food.Lime.ore("Lime");
|
||||
Food.WildCherry.ore("Cherry").ore("WildCherry");
|
||||
Food.SourCherry.ore("Cherry").ore("SourCherry");
|
||||
Food.BlackCherry.ore("Cherry").ore("BlackCherry");
|
||||
Food.Blackthorn.ore("Blackthorn");
|
||||
Food.CherryPlum.ore("Plum").ore("CherryPlum");
|
||||
Food.Almond.ore("Almond");
|
||||
Food.Apricot.ore("Apricot");
|
||||
Food.Grapefruit.ore("Grapefruit");
|
||||
Food.Peach.ore("Peach");
|
||||
Food.Satsuma.ore("Satsuma").ore("Orange");
|
||||
Food.BuddhaHand.ore("BuddhaHand").ore("Citron");
|
||||
Food.Citron.ore("Citron");
|
||||
Food.FingerLime.ore("Lime").ore("FingerLime");
|
||||
Food.KeyLime.ore("KeyLime").ore("Lime");
|
||||
Food.Manderin.ore("Orange").ore("Manderin");
|
||||
Food.Nectarine.ore("Peach").ore("Nectarine");
|
||||
Food.Pomelo.ore("Pomelo");
|
||||
Food.Tangerine.ore("Tangerine").ore("Orange");
|
||||
Food.Pear.ore("Pear");
|
||||
Food.SandPear.ore("SandPear");
|
||||
Food.Hazelnut.ore("Hazelnut");
|
||||
Food.Butternut.ore("Butternut").ore("Walnut");
|
||||
Food.Beechnut.ore("Beechnut");
|
||||
Food.Pecan.ore("Pecan");
|
||||
Food.Banana.ore("Banana");
|
||||
Food.RedBanana.ore("RedBanana").ore("Banana");
|
||||
Food.Plantain.ore("Plantain");
|
||||
Food.BrazilNut.ore("BrazilNut");
|
||||
Food.Fig.ore("Fig");
|
||||
Food.Acorn.ore("Acorn");
|
||||
Food.Elderberry.ore("Elderberry");
|
||||
Food.Olive.ore("Olive");
|
||||
Food.GingkoNut.ore("GingkoNut");
|
||||
Food.Coffee.ore("Coffee");
|
||||
Food.OsangeOrange.ore("OsangeOrange");
|
||||
Food.Clove.ore("Clove");
|
||||
Food.Papayimar.ore("Papayimar");
|
||||
Food.Blackcurrant.ore("Blackcurrant");
|
||||
Food.Redcurrant.ore("Redcurrant");
|
||||
Food.Blackberry.ore("Blackberry");
|
||||
Food.Raspberry.ore("Raspberry");
|
||||
Food.Blueberry.ore("Blueberry");
|
||||
Food.Cranberry.ore("Cranberry");
|
||||
Food.Juniper.ore("Juniper");
|
||||
Food.Gooseberry.ore("Gooseberry");
|
||||
Food.GoldenRaspberry.ore("GoldenRaspberry");
|
||||
Food.Coconut.ore("Coconut");
|
||||
Food.Cashew.ore("Cashew");
|
||||
Food.Avacado.ore("Avacado");
|
||||
Food.Nutmeg.ore("Nutmeg");
|
||||
Food.Chilli.ore("Chilli");
|
||||
Food.StarAnise.ore("StarAnise");
|
||||
Food.Mango.ore("Mango");
|
||||
Food.Starfruit.ore("Starfruit");
|
||||
Food.Candlenut.ore("Candlenut");
|
||||
}
|
||||
|
||||
public boolean isEdible() {
|
||||
return hunger > 0;
|
||||
}
|
||||
|
||||
public int getHealth() {
|
||||
return hunger;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName(ItemStack itemStack) {
|
||||
return I18N.localise("for.extratrees.item.food." + name().toLowerCase());
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack get(int count) {
|
||||
return new ItemStack(ETItems.itemFood, count, ordinal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(ItemStack itemStack) {
|
||||
return icon;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IIconRegister register) {
|
||||
icon = ExtraTrees.proxy.getIcon(register, "food/" + toString());
|
||||
}
|
||||
|
||||
public void addJuice(int time, int amount, int mulch) {
|
||||
RecipeManagers.squeezerManager.addRecipe(
|
||||
time,
|
||||
new ItemStack[] { get(1) },
|
||||
Binnie.Liquid.getLiquidStack("juice", amount),
|
||||
Mods.forestry.stack("mulch"),
|
||||
mulch);
|
||||
}
|
||||
|
||||
public void addOil(int time, int amount, int mulch) {
|
||||
RecipeManagers.squeezerManager.addRecipe(
|
||||
time,
|
||||
new ItemStack[] { get(1) },
|
||||
Binnie.Liquid.getLiquidStack("seedoil", amount),
|
||||
Mods.forestry.stack("mulch"),
|
||||
mulch);
|
||||
}
|
||||
|
||||
private Food ore(String string) {
|
||||
OreDictionary.registerOre("crop" + string, get(1));
|
||||
ores.add("crop" + string);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Collection<String> getOres() {
|
||||
return ores;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,268 @@
|
||||
package binnie.extratrees.item;
|
||||
|
||||
import static binnie.extratrees.ExtraTrees.ET_MODID;
|
||||
import static binnie.extratrees.item.ETItems.itemFood;
|
||||
|
||||
import binnie.Binnie;
|
||||
import binnie.core.Mods;
|
||||
import binnie.core.item.DamageItems;
|
||||
import binnie.core.util.I18N;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import forestry.api.core.Tabs;
|
||||
import forestry.api.recipes.RecipeManagers;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemFood;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
/**
|
||||
* This class doesn't extend {@link DamageItems} because it needs to extend {@link net.minecraft.item.ItemFood}, and
|
||||
* Java doesn't allow multiple inheritance.
|
||||
*/
|
||||
public class FoodItems extends ItemFood {
|
||||
public enum Items {
|
||||
Crabapple("Crabapple", 2),
|
||||
Orange("Orange", 4),
|
||||
Kumquat("Kumquat", 2),
|
||||
Lime("Lime", 2),
|
||||
WildCherry("WildCherry", 2),
|
||||
SourCherry("SourCherry", 2),
|
||||
BlackCherry("BlackCherry", 2),
|
||||
Blackthorn("Blackthorn", 3),
|
||||
CherryPlum("CherryPlum", 3),
|
||||
Almond("Almond", 1),
|
||||
Apricot("Apricot", 4),
|
||||
Grapefruit("Grapefruit", 4),
|
||||
Peach("Peach", 4),
|
||||
Satsuma("Satsuma", 3),
|
||||
BuddhaHand("BuddhaHand", 3),
|
||||
Citron("Citron", 3),
|
||||
FingerLime("FingerLime", 3),
|
||||
KeyLime("KeyLime", 2),
|
||||
Manderin("Manderin", 3),
|
||||
Nectarine("Nectarine", 3),
|
||||
Pomelo("Pomelo", 3),
|
||||
Tangerine("Tangerine", 3),
|
||||
Pear("Pear", 4),
|
||||
SandPear("SandPear", 2),
|
||||
Hazelnut("Hazelnut", 2),
|
||||
Butternut("Butternut", 1),
|
||||
Beechnut("Beechnut", 0),
|
||||
Pecan("Pecan", 0),
|
||||
Banana("Banana", 4),
|
||||
RedBanana("RedBanana", 4),
|
||||
Plantain("Plantain", 2),
|
||||
BrazilNut("BrazilNut", 0),
|
||||
Fig("Fig", 2),
|
||||
Acorn("Acorn", 0),
|
||||
Elderberry("Elderberry", 1),
|
||||
Olive("Olive", 1),
|
||||
GingkoNut("GingkoNut", 1),
|
||||
Coffee("Coffee", 0),
|
||||
OsangeOrange("OsangeOrange", 1),
|
||||
Clove("Clove", 0),
|
||||
Papayimar("Papayimar", 8),
|
||||
Blackcurrant("Blackcurrant", 2),
|
||||
Redcurrant("Redcurrant", 2),
|
||||
Blackberry("Blackberry", 2),
|
||||
Raspberry("Raspberry", 2),
|
||||
Blueberry("Blueberry", 2),
|
||||
Cranberry("Cranberry", 2),
|
||||
Juniper("Juniper", 0),
|
||||
Gooseberry("Gooseberry", 2),
|
||||
GoldenRaspberry("GoldenRaspberry", 2),
|
||||
Coconut("Coconut", 2),
|
||||
Cashew("Cashew", 0),
|
||||
Avacado("Avacado", 2),
|
||||
Nutmeg("Nutmeg", 0),
|
||||
Allspice("Allspice", 0),
|
||||
Chilli("Chilli", 2),
|
||||
StarAnise("StarAnise", 0),
|
||||
Mango("Mango", 4),
|
||||
Starfruit("Starfruit", 2),
|
||||
Candlenut("Candlenut", 0);
|
||||
|
||||
final String name;
|
||||
final int hunger;
|
||||
private static final Items[] VALUES = values();
|
||||
|
||||
Items(String name, int hunger) {
|
||||
this.name = name;
|
||||
this.hunger = hunger;
|
||||
}
|
||||
|
||||
public ItemStack get(int count) {
|
||||
return itemFood.getStack(count, ordinal());
|
||||
}
|
||||
|
||||
public void addJuice(int time, int amount, int mulch) {
|
||||
RecipeManagers.squeezerManager.addRecipe(
|
||||
time,
|
||||
new ItemStack[] { get(1) },
|
||||
Binnie.Liquid.getLiquidStack("juice", amount),
|
||||
Mods.forestry.stack("mulch"),
|
||||
mulch);
|
||||
}
|
||||
|
||||
public void addOil(int time, int amount, int mulch) {
|
||||
RecipeManagers.squeezerManager.addRecipe(
|
||||
time,
|
||||
new ItemStack[] { get(1) },
|
||||
Binnie.Liquid.getLiquidStack("seedoil", amount),
|
||||
Mods.forestry.stack("mulch"),
|
||||
mulch);
|
||||
}
|
||||
|
||||
Items addOredict(String string) {
|
||||
OreDictionary.registerOre("crop" + string, get(1));
|
||||
return this;
|
||||
}
|
||||
|
||||
public static void registerOreDictionary() {
|
||||
Crabapple.addOredict("Apple").addOredict("Crabapple");
|
||||
Orange.addOredict("Orange");
|
||||
Kumquat.addOredict("Kumquat");
|
||||
Lime.addOredict("Lime");
|
||||
WildCherry.addOredict("Cherry").addOredict("WildCherry");
|
||||
SourCherry.addOredict("Cherry").addOredict("SourCherry");
|
||||
BlackCherry.addOredict("Cherry").addOredict("BlackCherry");
|
||||
Blackthorn.addOredict("Blackthorn");
|
||||
CherryPlum.addOredict("Plum").addOredict("CherryPlum");
|
||||
Almond.addOredict("Almond");
|
||||
Apricot.addOredict("Apricot");
|
||||
Grapefruit.addOredict("Grapefruit");
|
||||
Peach.addOredict("Peach");
|
||||
Satsuma.addOredict("Satsuma").addOredict("Orange");
|
||||
BuddhaHand.addOredict("BuddhaHand").addOredict("Citron");
|
||||
Citron.addOredict("Citron");
|
||||
FingerLime.addOredict("Lime").addOredict("FingerLime");
|
||||
KeyLime.addOredict("KeyLime").addOredict("Lime");
|
||||
Manderin.addOredict("Orange").addOredict("Manderin");
|
||||
Nectarine.addOredict("Peach").addOredict("Nectarine");
|
||||
Pomelo.addOredict("Pomelo");
|
||||
Tangerine.addOredict("Tangerine").addOredict("Orange");
|
||||
Pear.addOredict("Pear");
|
||||
SandPear.addOredict("SandPear");
|
||||
Hazelnut.addOredict("Hazelnut");
|
||||
Butternut.addOredict("Butternut").addOredict("Walnut");
|
||||
Beechnut.addOredict("Beechnut");
|
||||
Pecan.addOredict("Pecan");
|
||||
Banana.addOredict("Banana");
|
||||
RedBanana.addOredict("RedBanana").addOredict("Banana");
|
||||
Plantain.addOredict("Plantain");
|
||||
BrazilNut.addOredict("BrazilNut");
|
||||
Fig.addOredict("Fig");
|
||||
Acorn.addOredict("Acorn");
|
||||
Elderberry.addOredict("Elderberry");
|
||||
Olive.addOredict("Olive");
|
||||
GingkoNut.addOredict("GingkoNut");
|
||||
Coffee.addOredict("Coffee");
|
||||
OsangeOrange.addOredict("OsangeOrange");
|
||||
Clove.addOredict("Clove");
|
||||
Papayimar.addOredict("Papayimar");
|
||||
Blackcurrant.addOredict("Blackcurrant");
|
||||
Redcurrant.addOredict("Redcurrant");
|
||||
Blackberry.addOredict("Blackberry");
|
||||
Raspberry.addOredict("Raspberry");
|
||||
Blueberry.addOredict("Blueberry");
|
||||
Cranberry.addOredict("Cranberry");
|
||||
Juniper.addOredict("Juniper");
|
||||
Gooseberry.addOredict("Gooseberry");
|
||||
GoldenRaspberry.addOredict("GoldenRaspberry");
|
||||
Coconut.addOredict("Coconut");
|
||||
Cashew.addOredict("Cashew");
|
||||
Avacado.addOredict("Avacado");
|
||||
Nutmeg.addOredict("Nutmeg");
|
||||
Chilli.addOredict("Chilli");
|
||||
StarAnise.addOredict("StarAnise");
|
||||
Mango.addOredict("Mango");
|
||||
Starfruit.addOredict("Starfruit");
|
||||
Candlenut.addOredict("Candlenut");
|
||||
}
|
||||
}
|
||||
|
||||
private final String[] NAMES;
|
||||
private final IIcon[] ICONS;
|
||||
private final String modid;
|
||||
|
||||
protected FoodItems() {
|
||||
super(0, 0, false);
|
||||
final String name = "food";
|
||||
|
||||
setCreativeTab(Tabs.tabArboriculture);
|
||||
setHasSubtypes(true);
|
||||
setUnlocalizedName(name);
|
||||
|
||||
NAMES = Arrays.stream(Items.VALUES).map(i -> i.name).toArray(String[]::new);
|
||||
ICONS = new IIcon[NAMES.length];
|
||||
this.modid = ET_MODID;
|
||||
|
||||
GameRegistry.registerItem(this, name);
|
||||
}
|
||||
|
||||
public ItemStack getStack(int count, int damage) {
|
||||
return new ItemStack(this, count, damage);
|
||||
}
|
||||
|
||||
public String getName(int damage) {
|
||||
return damage < NAMES.length ? NAMES[damage] : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item thiz, CreativeTabs tab, List<ItemStack> list) {
|
||||
for (int i = 0; i < NAMES.length; ++i) {
|
||||
list.add(new ItemStack(thiz, 1, i));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getItemStackDisplayName(ItemStack stack) {
|
||||
final int damage = stack.getItemDamage();
|
||||
return (damage < NAMES.length) ? I18N.localise("for.extratrees.item.food." + NAMES[damage].toLowerCase()) : "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(ItemStack stack, int pass) {
|
||||
return getIconFromDamage(stack.getItemDamage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIconFromDamage(int damage) {
|
||||
return (damage < ICONS.length && damage >= 0) ? ICONS[damage] : null;
|
||||
}
|
||||
|
||||
public String getIconName(int damage) {
|
||||
return NAMES[damage];
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister register) {
|
||||
for (int i = 0; i < NAMES.length; ++i) {
|
||||
ICONS[i] = register.registerIcon(modid + ":food/" + getIconName(i));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* I don't quite understand why these next two functions were overridden instead of using something with deobfed
|
||||
* names. In the vain hope of not breaking things, I leave them unchanged.
|
||||
*/
|
||||
|
||||
@Override
|
||||
public int func_150905_g(ItemStack stack) {
|
||||
return Items.VALUES[stack.getItemDamage()].hunger;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float func_150906_h(ItemStack stack) {
|
||||
return 3.0f;
|
||||
}
|
||||
}
|
||||
@@ -1,90 +0,0 @@
|
||||
package binnie.extratrees.item;
|
||||
|
||||
import binnie.core.item.IItemMisc;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import forestry.api.core.Tabs;
|
||||
import java.util.List;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
public class ItemFood extends net.minecraft.item.ItemFood {
|
||||
|
||||
protected IItemMisc[] items;
|
||||
|
||||
public ItemFood() {
|
||||
super(0, 0.0f, false);
|
||||
final String name = "food";
|
||||
|
||||
setUnlocalizedName(name);
|
||||
setCreativeTab(Tabs.tabArboriculture);
|
||||
setHasSubtypes(true);
|
||||
items = Food.values();
|
||||
|
||||
GameRegistry.registerItem(this, name);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item item, CreativeTabs tab, List<ItemStack> list) {
|
||||
for (IItemMisc itemMisc : items) {
|
||||
if (itemMisc.isActive()) {
|
||||
list.add(getStack(itemMisc, 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private IItemMisc getItem(int damage) {
|
||||
return (damage >= items.length) ? items[0] : items[damage];
|
||||
}
|
||||
|
||||
public ItemStack getStack(IItemMisc type, int size) {
|
||||
return new ItemStack(this, size, type.ordinal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getItemStackDisplayName(ItemStack stack) {
|
||||
IItemMisc item = getItem(stack.getItemDamage());
|
||||
return (item != null) ? item.getName(stack) : "null";
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(ItemStack stack, int pass) {
|
||||
IItemMisc item = getItem(stack.getItemDamage());
|
||||
return (item != null) ? item.getIcon(stack) : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIconFromDamage(int damage) {
|
||||
IItemMisc item = getItem(damage);
|
||||
return (item != null) ? item.getIcon(null) : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister register) {
|
||||
for (IItemMisc item : items) {
|
||||
if (item.isActive()) {
|
||||
item.registerIcons(register);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Food getFood(ItemStack stack) {
|
||||
return Food.values()[stack.getItemDamage()];
|
||||
}
|
||||
|
||||
@Override
|
||||
public int func_150905_g(ItemStack stack) {
|
||||
return getFood(stack).getHealth();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float func_150906_h(ItemStack stack) {
|
||||
return 3.0f;
|
||||
}
|
||||
}
|
||||
@@ -44,60 +44,60 @@ public class ModuleItems implements IInitializable {
|
||||
@Override
|
||||
public void init() {
|
||||
OreDictionary.registerOre("pulpWood", ETMisc.Items.Sawdust.get(1));
|
||||
Food.registerOreDictionary();
|
||||
FoodItems.Items.registerOreDictionary();
|
||||
OreDictionary.registerOre("cropApple", Items.apple);
|
||||
OreDictionary.registerOre("seedWheat", Items.wheat_seeds);
|
||||
|
||||
Food.Crabapple.addJuice(10, 150, 10);
|
||||
Food.Orange.addJuice(10, 400, 15);
|
||||
Food.Kumquat.addJuice(10, 300, 10);
|
||||
Food.Lime.addJuice(10, 300, 10);
|
||||
Food.WildCherry.addOil(20, 50, 5);
|
||||
Food.SourCherry.addOil(20, 50, 3);
|
||||
Food.BlackCherry.addOil(20, 50, 5);
|
||||
Food.Blackthorn.addJuice(10, 50, 5);
|
||||
Food.CherryPlum.addJuice(10, 100, 60);
|
||||
Food.Almond.addOil(20, 80, 5);
|
||||
Food.Apricot.addJuice(10, 150, 40);
|
||||
Food.Grapefruit.addJuice(10, 500, 15);
|
||||
Food.Peach.addJuice(10, 150, 40);
|
||||
Food.Satsuma.addJuice(10, 300, 10);
|
||||
Food.BuddhaHand.addJuice(10, 400, 15);
|
||||
Food.Citron.addJuice(10, 400, 15);
|
||||
Food.FingerLime.addJuice(10, 300, 10);
|
||||
Food.KeyLime.addJuice(10, 300, 10);
|
||||
Food.Manderin.addJuice(10, 400, 10);
|
||||
Food.Nectarine.addJuice(10, 150, 40);
|
||||
Food.Pomelo.addJuice(10, 300, 10);
|
||||
Food.Tangerine.addJuice(10, 300, 10);
|
||||
Food.Pear.addJuice(10, 300, 20);
|
||||
Food.SandPear.addJuice(10, 200, 10);
|
||||
Food.Hazelnut.addOil(20, 150, 5);
|
||||
Food.Butternut.addOil(20, 180, 5);
|
||||
Food.Beechnut.addOil(20, 100, 4);
|
||||
Food.Pecan.addOil(29, 50, 2);
|
||||
Food.Banana.addJuice(10, 100, 30);
|
||||
Food.RedBanana.addJuice(10, 100, 30);
|
||||
Food.Plantain.addJuice(10, 100, 40);
|
||||
Food.BrazilNut.addOil(20, 20, 2);
|
||||
Food.Fig.addOil(20, 50, 3);
|
||||
Food.Acorn.addOil(20, 50, 3);
|
||||
Food.Elderberry.addJuice(10, 100, 5);
|
||||
Food.Olive.addOil(20, 50, 3);
|
||||
Food.GingkoNut.addOil(20, 50, 5);
|
||||
Food.Coffee.addOil(15, 20, 2);
|
||||
Food.OsangeOrange.addJuice(10, 300, 15);
|
||||
Food.Clove.addOil(10, 25, 2);
|
||||
Food.Coconut.addOil(20, 300, 25);
|
||||
Food.Cashew.addJuice(10, 150, 15);
|
||||
Food.Avacado.addJuice(10, 300, 15);
|
||||
Food.Nutmeg.addOil(20, 50, 10);
|
||||
Food.Allspice.addOil(20, 50, 10);
|
||||
Food.Chilli.addJuice(10, 100, 10);
|
||||
Food.StarAnise.addOil(20, 100, 10);
|
||||
Food.Mango.addJuice(10, 400, 20);
|
||||
Food.Starfruit.addJuice(10, 300, 10);
|
||||
Food.Candlenut.addJuice(20, 50, 10);
|
||||
FoodItems.Items.Crabapple.addJuice(10, 150, 10);
|
||||
FoodItems.Items.Orange.addJuice(10, 400, 15);
|
||||
FoodItems.Items.Kumquat.addJuice(10, 300, 10);
|
||||
FoodItems.Items.Lime.addJuice(10, 300, 10);
|
||||
FoodItems.Items.WildCherry.addOil(20, 50, 5);
|
||||
FoodItems.Items.SourCherry.addOil(20, 50, 3);
|
||||
FoodItems.Items.BlackCherry.addOil(20, 50, 5);
|
||||
FoodItems.Items.Blackthorn.addJuice(10, 50, 5);
|
||||
FoodItems.Items.CherryPlum.addJuice(10, 100, 60);
|
||||
FoodItems.Items.Almond.addOil(20, 80, 5);
|
||||
FoodItems.Items.Apricot.addJuice(10, 150, 40);
|
||||
FoodItems.Items.Grapefruit.addJuice(10, 500, 15);
|
||||
FoodItems.Items.Peach.addJuice(10, 150, 40);
|
||||
FoodItems.Items.Satsuma.addJuice(10, 300, 10);
|
||||
FoodItems.Items.BuddhaHand.addJuice(10, 400, 15);
|
||||
FoodItems.Items.Citron.addJuice(10, 400, 15);
|
||||
FoodItems.Items.FingerLime.addJuice(10, 300, 10);
|
||||
FoodItems.Items.KeyLime.addJuice(10, 300, 10);
|
||||
FoodItems.Items.Manderin.addJuice(10, 400, 10);
|
||||
FoodItems.Items.Nectarine.addJuice(10, 150, 40);
|
||||
FoodItems.Items.Pomelo.addJuice(10, 300, 10);
|
||||
FoodItems.Items.Tangerine.addJuice(10, 300, 10);
|
||||
FoodItems.Items.Pear.addJuice(10, 300, 20);
|
||||
FoodItems.Items.SandPear.addJuice(10, 200, 10);
|
||||
FoodItems.Items.Hazelnut.addOil(20, 150, 5);
|
||||
FoodItems.Items.Butternut.addOil(20, 180, 5);
|
||||
FoodItems.Items.Beechnut.addOil(20, 100, 4);
|
||||
FoodItems.Items.Pecan.addOil(29, 50, 2);
|
||||
FoodItems.Items.Banana.addJuice(10, 100, 30);
|
||||
FoodItems.Items.RedBanana.addJuice(10, 100, 30);
|
||||
FoodItems.Items.Plantain.addJuice(10, 100, 40);
|
||||
FoodItems.Items.BrazilNut.addOil(20, 20, 2);
|
||||
FoodItems.Items.Fig.addOil(20, 50, 3);
|
||||
FoodItems.Items.Acorn.addOil(20, 50, 3);
|
||||
FoodItems.Items.Elderberry.addJuice(10, 100, 5);
|
||||
FoodItems.Items.Olive.addOil(20, 50, 3);
|
||||
FoodItems.Items.GingkoNut.addOil(20, 50, 5);
|
||||
FoodItems.Items.Coffee.addOil(15, 20, 2);
|
||||
FoodItems.Items.OsangeOrange.addJuice(10, 300, 15);
|
||||
FoodItems.Items.Clove.addOil(10, 25, 2);
|
||||
FoodItems.Items.Coconut.addOil(20, 300, 25);
|
||||
FoodItems.Items.Cashew.addJuice(10, 150, 15);
|
||||
FoodItems.Items.Avacado.addJuice(10, 300, 15);
|
||||
FoodItems.Items.Nutmeg.addOil(20, 50, 10);
|
||||
FoodItems.Items.Allspice.addOil(20, 50, 10);
|
||||
FoodItems.Items.Chilli.addJuice(10, 100, 10);
|
||||
FoodItems.Items.StarAnise.addOil(20, 100, 10);
|
||||
FoodItems.Items.Mango.addJuice(10, 400, 20);
|
||||
FoodItems.Items.Starfruit.addJuice(10, 300, 10);
|
||||
FoodItems.Items.Candlenut.addJuice(20, 50, 10);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -143,7 +143,7 @@ public class ModuleItems implements IInitializable {
|
||||
|
||||
try {
|
||||
Item minium = (Item) Class.forName("com.pahimar.ee3.lib.ItemIds").getField("miniumShard").get(null);
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(Food.Papayimar.get(1), minium, "cropPapaya"));
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(FoodItems.Items.Papayimar.get(1), minium, "cropPapaya"));
|
||||
} catch (Exception ex) {
|
||||
// ignored
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user