Advertisement
Guest User

Untitled

a guest
Jun 8th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 36.87 KB | None | 0 0
  1. package FoodPlus;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.creativetab.CreativeTabs;
  5. import net.minecraft.item.EnumToolMaterial;
  6. import net.minecraft.item.Item;
  7. import net.minecraft.item.ItemFood;
  8. import net.minecraft.item.ItemReed;
  9. import net.minecraft.item.ItemStack;
  10. import net.minecraftforge.common.Configuration;
  11. import net.minecraftforge.common.EnumHelper;
  12. import net.minecraftforge.common.MinecraftForge;
  13. import cpw.mods.fml.common.Mod;
  14. import cpw.mods.fml.common.Mod.Init;
  15. import cpw.mods.fml.common.Mod.Instance;
  16. import cpw.mods.fml.common.Mod.PreInit;
  17. import cpw.mods.fml.common.event.FMLInitializationEvent;
  18. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  19. import cpw.mods.fml.common.network.NetworkMod;
  20. import cpw.mods.fml.common.network.NetworkRegistry;
  21. import cpw.mods.fml.common.registry.GameRegistry;
  22. import cpw.mods.fml.common.registry.LanguageRegistry;
  23.  
  24. @Mod(modid = "FoodPlus", name = "Food Plus", version = "2.0-BugFix")
  25. @NetworkMod(clientSideRequired = true, channels = {"FoodPlus"}, packetHandler = PacketHandler.class)
  26.  
  27. public class FoodPlus
  28. {
  29.        
  30.     //INSTANCES & GUIs
  31.         @Instance("FoodPlus")
  32.         public static FoodPlus instance = new FoodPlus();
  33.         private GuiHandler guiHandlerTrees = new GuiHandler();
  34.  
  35.        
  36.         //ITEMS
  37.                 public static Item applecakeslice;
  38.                 public static Item coockedcarrot;
  39.                 public static Item stew;
  40.                 public static Item breadslice;
  41.                 public static Item hamburger;
  42.                 public static Item butter;
  43.                 public static Item toast;
  44.                 public static Item sushi;
  45.                 public static Item breadandbutterpudding;
  46.                 public static Item smashedpotato;
  47.                 public static Item chocolate;
  48.                 public static Item milkshake;
  49.                 public static Item chips;
  50.                 public static Item chipsfried;
  51.                 public static Item carrotsoup;
  52.                 public static Item nutella;
  53.                 public static Item breadwithnutella;
  54.                 public static Item omelette;
  55.                 public static Item omelettefinal;
  56.                 public static Item breadwithbutter;
  57.                 public static Item muffin;
  58.                 public static Item broth;
  59.                 public static Item steakandchips;
  60.                 public static Item spaghetti;
  61.                 public static Item pasta;
  62.                 public static Item sweet;
  63.                 public static Item caramel;
  64.                 public static Item cereal;
  65.                 public static Item bowlofcereal;
  66.                 public static Item salt;
  67.                 public static Item pizzaslice;
  68.                 public static Item cheese;
  69.                 public static Item rawpizza;
  70.                 public static Item strawberry;
  71.                 public static Item strawberrymilkshake;
  72.                 public static Item cheesepasta;
  73.                 public static Item crisps;
  74.                 public static Item friedegg;
  75.                 public static Item donutbase;
  76.                 public static Item chocolatedonut;
  77.                 public static Item strawberrydonut;
  78.                 public static Item strawberryseed;
  79.                 public static Item flour;
  80.                 public static Item tomatoseed;
  81.                 public static Item tomato;
  82.                 public static Item strawberryjam;
  83.                 public static Item knife;
  84.                 public static Item waffle;
  85.                 public static Item kebab;
  86.                 public static Item fishandchips;
  87.                 public static Item chocolatecakeitem;
  88.                 public static Item pizzaitem;
  89.                 public static Item beefpieitem;
  90.                 public static Item glass;
  91.                 public static Item applejuice;
  92.                 public static Item riceseed;
  93.                 public static Item rice;
  94.                 //IDS
  95.                 public static int applecakesliceID;
  96.                 public static int coockedcarrotID;
  97.                 public static int stewID;
  98.                 public static int breadsliceID;
  99.                 public static int hamburgerID;
  100.                 public static int butterID;
  101.                 public static int toastID;
  102.                 public static int sushiID;
  103.                 public static int breadandbutterpuddingID;
  104.                 public static int smashedpotatoID;
  105.                 public static int chocolateID;
  106.                 public static int milkshakeID;
  107.                 public static int chipsID;
  108.                 public static int chipsfriedID;
  109.                 public static int carrotsoupID;
  110.                 public static int nutellaID;
  111.                 public static int breadwithnutellaID;
  112.                 public static int omeletteID;
  113.                 public static int omelettefinalID;
  114.                 public static int breadwithbutterID;
  115.                 public static int muffinID;
  116.                 public static int brothID;
  117.                 public static int steakandchipsID;
  118.                 public static int spaghettiID;
  119.                 public static int pastaID;
  120.                 public static int sweetID;
  121.                 public static int caramelID;
  122.                 public static int cerealID;
  123.                 public static int bowlofcerealID;
  124.                 public static int saltID;
  125.                 public static int pizzasliceID;
  126.                 public static int cheeseID;
  127.                 public static int rawpizzaID;
  128.                 public static int strawberryID;
  129.                 public static int strawberrymilkshakeID;
  130.                 public static int cheesepastaID;
  131.                 public static int crispsID;
  132.                 public static int friedeggID;
  133.                 public static int donutbaseID;
  134.                 public static int chocolatedonutID;
  135.                 public static int strawberrydonutID;
  136.                 public static int strawberryseedID;
  137.                 public static int flourID;
  138.                 public static int tomatoseedID;
  139.                 public static int tomatoID;
  140.                 public static int strawberryjamID;
  141.                 public static int knifeID;
  142.                 public static int waffleID;
  143.                 public static int kebabID;
  144.                 public static int fishandchipsID;
  145.                 public static int chocolatecakeitemID;
  146.                 public static int pizzaitemID;
  147.                 public static int beefpieitemID;
  148.                 public static int glassID;
  149.                 public static int applejuiceID;
  150.                 public static int riceseedID;
  151.                 public static int riceID;
  152.                
  153.                
  154.                 //BLOCKS
  155.                 public static Block tomatocrop;
  156.                 public static Block strawberrycrop;
  157.                 public static Block beefpie;
  158.                 public static Block partyblock;
  159.                 public static Block pizza;
  160.                 public static Block saltore;
  161.                 public static Block saltblock;
  162.                 public static Block chocolatecake;
  163.                 public static Block worktop;
  164.                 public static Block ricecrop;
  165.                 //IDS
  166.                 public static int tomatocropID;
  167.                 public static int strawberrycropID;
  168.                 public static int partyblockID;
  169.                 public static int saltoreID;
  170.                 public static int saltblockID;
  171.                 public static int worktopID;
  172.                 public static int ricecropID;
  173.                 public static int chocolatecakeID;
  174.                 public static int beefpieID;
  175.                 public static int pizzaID;
  176.                
  177.                 //MISC.
  178.                 public static CreativeTabs foodplustab;
  179.                 public static Item candypickaxe;
  180.                 public static Item candyaxe;
  181.                 public static Item candyhoe;
  182.                 public static Item candysword;
  183.                 public static Item candyspade;
  184.                 //IDS
  185.                 public static int candypickaxeID;
  186.                 public static int candyaxeID;
  187.                 public static int candyhoeID;
  188.                 public static int candyswordID;
  189.                 public static int candyspadeID;
  190.                
  191.                
  192.                 @PreInit
  193.         public void preInit(FMLPreInitializationEvent event) {
  194.                        
  195.                         Configuration config = new Configuration(event.getSuggestedConfigurationFile());
  196.  
  197.                         config.load();
  198.  
  199.                         // Configuration goes here.
  200.                         applecakesliceID = config.getItem("applecakeslice",3000).getInt();
  201.                         coockedcarrotID = config.getItem("coockedcarrot", 3001).getInt();
  202.                         stewID = config.getItem("stew", 3002).getInt();
  203.                         breadsliceID = config.getItem("breadslice", 3003).getInt();
  204.                         hamburgerID = config.getItem("hamburger", 3004).getInt();
  205.                         butterID = config.getItem("butter", 3005).getInt();
  206.                         toastID = config.getItem("toast", 3006).getInt();
  207.                         sushiID = config.getItem("sushi", 3007).getInt();
  208.                         breadandbutterpuddingID = config.getItem("breadandbutterpudding", 3008).getInt();
  209.                         smashedpotatoID = config.getItem("smashedpotato", 3009).getInt();
  210.                         chocolateID = config.getItem("chocolate", 3010).getInt();
  211.                         milkshakeID = config.getItem("milkshake", 3011).getInt();
  212.                         chipsID = config.getItem("chips", 3013).getInt();
  213.                         chipsfriedID = config.getItem("chipsfried", 3014).getInt();
  214.                         carrotsoupID = config.getItem("carrotsoup", 3015).getInt();
  215.                         nutellaID = config.getItem("nutella", 3016).getInt();
  216.                         breadwithnutellaID = config.getItem("breadwithnutella", 3017).getInt();
  217.                         omeletteID = config.getItem("omelette", 3018).getInt();
  218.                         omelettefinalID = config.getItem("omelettefinal", 3019).getInt();
  219.                         breadwithbutterID = config.getItem("breadwithbutter", 3039).getInt();
  220.                         muffinID = config.getItem("muffin", 3020).getInt();
  221.                         brothID = config.getItem("broth", 3021).getInt();
  222.                         steakandchipsID = config.getItem("steakandchips", 3022).getInt();
  223.                         spaghettiID = config.getItem("spaghetti", 3023).getInt();
  224.                         pastaID = config.getItem("pasta", 3024).getInt();
  225.                         sweetID = config.getItem("sweet", 3025).getInt();
  226.                         caramelID = config.getItem("caramel", 3026).getInt();
  227.                         cerealID = config.getItem("cereal", 3027).getInt();
  228.                         bowlofcerealID = config.getItem("bowlofcereal", 3028).getInt();
  229.                         saltID = config.getItem("salt", 3029).getInt();
  230.                         pizzasliceID = config.getItem("pizzaslice", 3033).getInt();
  231.                         cheeseID = config.getItem("cheese", 3037).getInt();
  232.                         rawpizzaID = config.getItem("rawpizza", 3038).getInt();
  233.                         strawberryID = config.getItem("strawberry", 3031).getInt();
  234.                         strawberrymilkshakeID = config.getItem("strawberrymilkshake", 3042).getInt();
  235.                         cheesepastaID = config.getItem("cheesepastam", 3043).getInt();
  236.                         crispsID = config.getItem("crisps", 3044).getInt();
  237.                         friedeggID = config.getItem("friedegg", 3045).getInt();
  238.                         donutbaseID = config.getItem("donutbase", 3046).getInt();
  239.                         chocolatedonutID = config.getItem("chocolatedonut", 3049).getInt();
  240.                         strawberrydonutID = config.getItem("strawberrydonut", 3059).getInt();
  241.                         strawberryseedID = config.getItem("strawberryseed", 3048).getInt();
  242.                         flourID = config.getItem("flour", 3050).getInt();
  243.                         tomatoseedID = config.getItem("tomatoseed", 3041).getInt();
  244.                         tomatoID = config.getItem("tomato", 3036).getInt();
  245.                         strawberryjamID = config.getItem("strawberryjam", 3058).getInt();
  246.                         knifeID = config.getItem("knife", 3052).getInt();
  247.                         waffleID = config.getItem("waffle", 3060).getInt();
  248.                         kebabID = config.getItem("kebab", 3061).getInt();
  249.                         fishandchipsID = config.getItem("fishandchips", 3062).getInt();
  250.                         chocolatecakeitemID = config.getItem("chocolatecakeitem", 3063).getInt();
  251.                         pizzaitemID = config.getItem("pizzaitem", 3064).getInt();
  252.                         beefpieitemID = config.getItem("beefpieitem", 3065).getInt();
  253.                         glassID = config.getItem("glass", 3066).getInt();
  254.                         applejuiceID = config.getItem("applejuice", 3067).getInt();
  255.                         riceseedID = config.getItem("riceseed", 3070).getInt();
  256.                         riceID = config.getItem("rice", 3068).getInt();
  257.                        
  258.                        
  259.                         partyblockID = config.getBlock("partyblock", 3035).getInt();
  260.                         saltblockID = config.getBlock("saltblock", 3051).getInt();
  261.                         saltoreID = config.getBlock("saltore", 3030).getInt();
  262.                         tomatocropID = config.getBlock("tomatocrop", 3040).getInt();
  263.                         strawberrycropID = config.getBlock("strawberrycrop", 3047).getInt();
  264.                         worktopID = config.getBlock("worktop", 3052).getInt();
  265.                         ricecropID = config.getBlock("ricecrop", 3069).getInt();
  266.                         beefpieID = config.getBlock("beefpie", 3034).getInt();
  267.                         pizzaID = config.getBlock("pizza", 3032).getInt();
  268.                         chocolatecakeID = config.getBlock("chocolatecake", 3012).getInt();
  269.                        
  270.                         candypickaxeID = config.getItem("candypickaxe", 3053).getInt();
  271.                         candyaxeID = config.getItem("candyaxe", 3054).getInt();
  272.                         candyhoeID = config.getItem("candyhoe", 3055).getInt();
  273.                         candyswordID = config.getItem("candysword", 3056).getInt();
  274.                         candyspadeID = config.getItem("candyspade", 3057).getInt();
  275.                        
  276.                         config.save();
  277.         }
  278.        @Init
  279.        public void load(FMLInitializationEvent event)
  280.        {
  281.            
  282.          //MISC. IMPORTANT
  283.            foodplustab = new foodplustab(CreativeTabs.getNextID(), "FoodPlus Tab");
  284.            EnumToolMaterial TutTool = EnumHelper.addToolMaterial("Tool", 1, 131, 4.0F, 1, 5); //Stone
  285.            beefpie = new beefpie(beefpieID).setUnlocalizedName("beefpie");
  286.            pizza = new pizza(pizzaID).setHardness(1.0F).setResistance(2.0F).setUnlocalizedName("pizza");
  287.            chocolatecake = new chocolatecake(chocolatecakeID).setUnlocalizedName("chocolatecake");
  288.                                
  289.          //ITEMS
  290.                 applecakeslice = new ItemFood(applecakesliceID, 10, false).setUnlocalizedName("applecakeslice").setCreativeTab(this.foodplustab);
  291.                 coockedcarrot = new ItemFood(coockedcarrotID, 5, false).setUnlocalizedName("coockedcarrot").setCreativeTab(this.foodplustab);
  292.                 stew = new ItemFood(stewID, 10, true).setUnlocalizedName("stew").setCreativeTab(this.foodplustab);
  293.                 breadslice = new ItemFood(breadsliceID, 3, false).setUnlocalizedName("breadslice").setCreativeTab(this.foodplustab);
  294.                 hamburger = new ItemFood(hamburgerID, 6, false).setUnlocalizedName("hamburger").setCreativeTab(this.foodplustab);
  295.                 butter = new ItemFood(butterID, 1, false).setUnlocalizedName("butter").setCreativeTab(this.foodplustab);
  296.                 toast = new ItemFood(toastID, 2, false).setUnlocalizedName("toast").setCreativeTab(this.foodplustab);
  297.                 sushi = new ItemFood(sushiID, 2, true).setUnlocalizedName("sushi").setCreativeTab(this.foodplustab);
  298.                 breadandbutterpudding = new ItemFood(breadandbutterpuddingID, 12, false).setUnlocalizedName("breadandbutterpudding").setCreativeTab(this.foodplustab);
  299.                 smashedpotato = new ItemFood(smashedpotatoID, 10, false).setUnlocalizedName("smashedpotato").setCreativeTab(this.foodplustab);
  300.                 chocolate = new ItemFood(chocolateID, 4, false).setUnlocalizedName("chocolate").setCreativeTab(this.foodplustab);
  301.                 milkshake = new ItemFood(milkshakeID, 3, false).setUnlocalizedName("milkshake").setCreativeTab(this.foodplustab);
  302.                 chips = new ItemFood(chipsID, 6, false).setUnlocalizedName("chips").setCreativeTab(this.foodplustab);
  303.                 chipsfried = new ItemFood(chipsfriedID, 7, false).setUnlocalizedName("chipsfried").setCreativeTab(this.foodplustab);
  304.                 carrotsoup = new ItemFood(carrotsoupID, 6, false).setUnlocalizedName("carrotsoup").setCreativeTab(this.foodplustab);
  305.                 nutella = new ItemFood(nutellaID, 4, false).setUnlocalizedName("nutella").setCreativeTab(this.foodplustab);
  306.                 breadwithnutella = new ItemFood(breadwithnutellaID, 10, false).setUnlocalizedName("breadwithnutella").setCreativeTab(this.foodplustab);
  307.                 omelette = new ItemFood(omeletteID, 3, false).setUnlocalizedName("omelette").setCreativeTab(this.foodplustab);
  308.                 omelettefinal = new ItemFood(omelettefinalID, 6, false).setUnlocalizedName("omelettefinal").setCreativeTab(this.foodplustab);
  309.                 muffin = new ItemFood(muffinID, 4, false).setUnlocalizedName("muffin").setCreativeTab(this.foodplustab);
  310.                 broth = new ItemFood(brothID, 8, false).setUnlocalizedName("broth").setCreativeTab(this.foodplustab);
  311.                 steakandchips = new ItemFood(steakandchipsID, 12, false).setUnlocalizedName("steakandchips").setCreativeTab(this.foodplustab);
  312.                 spaghetti = new ItemFood(spaghettiID, 1, false).setUnlocalizedName("spaghetti").setCreativeTab(this.foodplustab);
  313.                 pasta = new ItemFood(pastaID, 10, false).setUnlocalizedName("pasta").setCreativeTab(this.foodplustab);
  314.                 sweet = new ItemFood(sweetID, 10, false).setUnlocalizedName("sweet").setCreativeTab(this.foodplustab);
  315.                 caramel = new ItemFood(caramelID, 1, false).setUnlocalizedName("caramel").setCreativeTab(this.foodplustab);
  316.                 cereal = new ItemFood(cerealID, 8, false).setUnlocalizedName("cereal").setCreativeTab(this.foodplustab);
  317.                 bowlofcereal = new ItemFood(bowlofcerealID, 8, false).setUnlocalizedName("bowlofcereal").setCreativeTab(this.foodplustab);
  318.                 salt = new ItemFood(saltID, 1, false).setUnlocalizedName("salt").setCreativeTab(this.foodplustab);
  319.                 strawberry = new ItemFood(strawberryID, 2, false).setUnlocalizedName("strawberry").setCreativeTab(this.foodplustab);
  320.                 pizzaslice = new ItemFood(pizzasliceID, 4, false).setUnlocalizedName("pizzaslice").setCreativeTab(this.foodplustab);
  321.                 tomato = new ItemFood(tomatoID, 4, false).setUnlocalizedName("tomato").setCreativeTab(this.foodplustab);
  322.                 cheese = new ItemFood(cheeseID, 6, false).setUnlocalizedName("cheese").setCreativeTab(this.foodplustab);
  323.                 rawpizza = new ItemFood(rawpizzaID, 2, false).setUnlocalizedName("rawpizza").setCreativeTab(this.foodplustab);
  324.                 breadwithbutter = new ItemFood(breadwithbutterID, 6, false).setUnlocalizedName("breadwithbutter").setCreativeTab(this.foodplustab);
  325.                 strawberrymilkshake = new ItemFood(strawberrymilkshakeID, 3, false).setUnlocalizedName("strawberrymilkshake").setCreativeTab(this.foodplustab);
  326.                 cheesepasta = new ItemFood(cheesepastaID, 10, false).setUnlocalizedName("cheesepasta").setCreativeTab(this.foodplustab);
  327.                 crisps = new ItemFood(crispsID, 10, false).setUnlocalizedName("crisps").setCreativeTab(this.foodplustab);
  328.                 friedegg = new ItemFood(friedeggID, 4, false).setUnlocalizedName("friedegg").setCreativeTab(this.foodplustab);
  329.                 donutbase = new ItemFood(donutbaseID, 2, false).setUnlocalizedName("donutbase").setCreativeTab(this.foodplustab);
  330.                 chocolatedonut = new ItemFood(chocolatedonutID, 6, false).setUnlocalizedName("chocolatedonut").setCreativeTab(this.foodplustab);
  331.                 flour = new ItemFood(flourID, 1, false).setUnlocalizedName("flour").setCreativeTab(this.foodplustab);
  332.                 knife = new Item(knifeID).setUnlocalizedName("knife").setCreativeTab(this.foodplustab);
  333.                 strawberryjam = new ItemFood(strawberryjamID, 4, false).setUnlocalizedName("strawberryjam").setCreativeTab(this.foodplustab);
  334.                 strawberrydonut = new ItemFood(strawberrydonutID, 6, false).setUnlocalizedName("strawberrydonut").setCreativeTab(this.foodplustab);
  335.                 waffle = new ItemFood(waffleID, 3, false).setUnlocalizedName("waffle").setCreativeTab(this.foodplustab);
  336.                 kebab = new ItemFood(kebabID, 7, false).setUnlocalizedName("kebab").setCreativeTab(this.foodplustab);
  337.                 fishandchips = new ItemFood(fishandchipsID, 11, false).setUnlocalizedName("fishandchips").setCreativeTab(this.foodplustab);
  338.                 chocolatecakeitem = new ItemReed(chocolatecakeitemID, chocolatecake).setMaxStackSize(2).setUnlocalizedName("chocolatecakeitem").setCreativeTab(this.foodplustab);
  339.                 pizzaitem = new ItemReed(pizzaitemID, pizza).setMaxStackSize(2).setUnlocalizedName("pizzaitem").setCreativeTab(this.foodplustab);
  340.                 beefpieitem = new ItemReed(beefpieitemID, beefpie).setMaxStackSize(2).setUnlocalizedName("beefpieitem").setCreativeTab(this.foodplustab);
  341.                 glass = new Item(glassID).setUnlocalizedName("glass").setCreativeTab(this.foodplustab);
  342.                 applejuice = new ItemFood(applejuiceID, 5, false).setUnlocalizedName("applejuice").setCreativeTab(this.foodplustab);
  343.                 rice = new Item(riceID).setUnlocalizedName("rice").setCreativeTab(this.foodplustab);
  344.                
  345.                
  346.                 //TOOLS & ARMOUR
  347.                 candypickaxe = new candypickaxe(candypickaxeID, TutTool).setUnlocalizedName("candypickaxe").setCreativeTab(this.foodplustab);
  348.                 candyaxe = new candyaxe(candyaxeID, TutTool).setUnlocalizedName("candyaxe").setCreativeTab(this.foodplustab);
  349.                 candyhoe = new candyhoe(candyhoeID, TutTool).setUnlocalizedName("candyhoe").setCreativeTab(this.foodplustab);
  350.                 candysword = new candysword(candyswordID, TutTool).setUnlocalizedName("candysword").setCreativeTab(this.foodplustab);
  351.                 candyspade = new candyspade(candyspadeID, TutTool).setUnlocalizedName("candyspade").setCreativeTab(this.foodplustab);
  352.                
  353.                
  354.         //BLOCKS
  355.                 partyblock = new partyblock(partyblockID).setHardness(1.0F).setResistance(2.0F).setUnlocalizedName("partyblock").setCreativeTab(this.foodplustab);
  356.                 saltblock = new saltblock(saltblockID).setHardness(1.0F).setResistance(2.0F).setUnlocalizedName("saltblock").setCreativeTab(this.foodplustab);
  357.                 saltore = new saltore(saltoreID).setHardness(1.0F).setResistance(2.0F).setUnlocalizedName("saltore").setCreativeTab(this.foodplustab);
  358.                 tomatocrop = new tomatocrop(tomatocropID).setStepSound(Block.soundGrassFootstep).setHardness(0.0F).setUnlocalizedName("tomatocrop");
  359.                 tomatoseed = new tomatoseed(tomatoseedID, tomatocrop.blockID, Block.grass.blockID).setUnlocalizedName("tomatoseed").setCreativeTab(this.foodplustab);
  360.                 strawberrycrop = new strawberrycrop(strawberrycropID).setStepSound(Block.soundGrassFootstep).setHardness(0.0F).setUnlocalizedName("strawberrycrop");
  361.                 strawberryseed = new strawberryseed(strawberryseedID, strawberrycrop.blockID, Block.grass.blockID).setUnlocalizedName("strawberryseed").setCreativeTab(this.foodplustab);
  362.                 worktop = new worktop(worktopID).setHardness(2.5F).setStepSound(Block.soundWoodFootstep).setUnlocalizedName("Smiths Bench").setCreativeTab(this.foodplustab);
  363.                 ricecrop = new ricecrop(ricecropID).setStepSound(Block.soundGrassFootstep).setHardness(0.0F).setUnlocalizedName("ricecrop");
  364.                 riceseed = new tomatoseed(riceseedID, ricecrop.blockID, Block.grass.blockID).setUnlocalizedName("riceseed").setCreativeTab(this.foodplustab);
  365.                
  366.             //MISC.
  367.                 MinecraftForge.EVENT_BUS.register(new tomatocropevent());
  368.                 MinecraftForge.EVENT_BUS.register(new strawberrycropevent());
  369.                 GameRegistry.registerWorldGenerator(new WorldGeneratorName());
  370.                 GameRegistry.registerWorldGenerator(new WorldGeneratorName());
  371.                 MinecraftForge.addGrassSeed(new ItemStack(tomatoseed), 10);
  372.                         MinecraftForge.addGrassSeed(new ItemStack(strawberryseed), 10);
  373.                         //MinecraftForge.addGrassSeed(new ItemStack(riceseed), 10);
  374.                         NetworkRegistry.instance().registerGuiHandler(this, guiHandlerTrees);
  375.                        
  376.    
  377.                         //LANGUAGE
  378.                        
  379.                 //ApplecakeSlice
  380.                         LanguageRegistry.addName(applecakeslice, "Apple pie");
  381.                        
  382.                         //CoockedCarrot
  383.                         LanguageRegistry.addName(coockedcarrot, "Cooked carrot");
  384.                         GameRegistry.addSmelting(Item.carrot.itemID, new ItemStack(FoodPlus.coockedcarrot), 0.1f);
  385.                    
  386.                         //Stew
  387.                         LanguageRegistry.addName(stew, "Stew");
  388.                    
  389.                         //BreadSlice-------
  390.                         LanguageRegistry.addName(breadslice, "Bread Slice");
  391.                        
  392.                         //Hamburger--------
  393.                         LanguageRegistry.addName(hamburger, "Hamburger");      
  394.                        
  395.                         //Butter-----------
  396.                         LanguageRegistry.addName(butter, "Butter");
  397.                        
  398.                         //Tostade---------
  399.                         LanguageRegistry.addName(toast, "Tostade");
  400.                         GameRegistry.addSmelting(FoodPlus.breadslice.itemID, new ItemStack(FoodPlus.toast), 0.1f);
  401.                    
  402.                         //Sushi-------------
  403.                         LanguageRegistry.addName(sushi, "Sushi");
  404.                        
  405.                         //BreadAndButterPudding---
  406.                         LanguageRegistry.addName(breadandbutterpudding, "Bread and butter pudding");
  407.                        
  408.                         //SmashedPotato----
  409.                         LanguageRegistry.addName(smashedpotato, "Mashed potato");
  410.                        
  411.                         //Chocolate------
  412.                         LanguageRegistry.addName(chocolate, "Chocolate");
  413.                        
  414.                         //Milkshake------
  415.                         LanguageRegistry.addName(milkshake, "Chocolate milkshake");
  416.                        
  417.                         //Chocolatecacke---
  418.                         LanguageRegistry.addName(chocolatecake, "Chocolate cake");
  419.                         GameRegistry.registerBlock(chocolatecake, "Chocolate cake");
  420.                        
  421.                         //Chips&Fries-------
  422.                         LanguageRegistry.addName(chips, "Raw chips");
  423.                         LanguageRegistry.addName(chipsfried, "Cooked chips");
  424.                         GameRegistry.addSmelting(FoodPlus.chips.itemID, new ItemStack(FoodPlus.chipsfried), 0.1f);
  425.                    
  426.                         //Carrotsoup------
  427.                         LanguageRegistry.addName(carrotsoup, "Carrot soup");
  428.                        
  429.                         //Nutella---------
  430.                         LanguageRegistry.addName(nutella, "Nutella");
  431.                        
  432.                         //Breadwithnutella----
  433.                         LanguageRegistry.addName(breadwithnutella, "Bread with nutella");
  434.                        
  435.                         //Omelete-------
  436.                         LanguageRegistry.addName(omelette, "Raw omelette");
  437.                         LanguageRegistry.addName(omelettefinal, "Omelette");
  438.                         GameRegistry.addSmelting(FoodPlus.omelette.itemID, new ItemStack(FoodPlus.omelettefinal), 0.1f);
  439.                    
  440.                         //breadwithbutter-----
  441.                         LanguageRegistry.addName(breadwithbutter, "Buttered bread");
  442.                        
  443.                         //Muffin--------
  444.                         LanguageRegistry.addName(muffin, "Muffin");
  445.                        
  446.                         //Broth---------
  447.                         LanguageRegistry.addName(broth, "Broth");
  448.                        
  449.                         //Steakandchips--
  450.                         LanguageRegistry.addName(steakandchips, "Steak and chips");    
  451.                        
  452.                         //Spaghetti----
  453.                         LanguageRegistry.addName(spaghetti, "Spaghetti");      
  454.                        
  455.                         //Pasta--------
  456.                         LanguageRegistry.addName(pasta, "Pasta");
  457.                         GameRegistry.registerItem(pasta, "pasta");
  458.                        
  459.                         //Sweet--------
  460.                         LanguageRegistry.addName(sweet, "Sweet");      
  461.                        
  462.                         //Caramel-------
  463.                         LanguageRegistry.addName(caramel, "Caramel");  
  464.                         GameRegistry.addSmelting(Item.sugar.itemID, new ItemStack(FoodPlus.caramel), 0.1f);
  465.                  
  466.                         //Cereal--------
  467.                         LanguageRegistry.addName(cereal, "Cereal");    
  468.                        
  469.                         //Bowlofcereal-----
  470.                         LanguageRegistry.addName(bowlofcereal, "Bowl of cereal");      
  471.                        
  472.                         //Salt----------
  473.                         LanguageRegistry.addName(salt, "Salt");
  474.                  
  475.                         //Saltore-----
  476.                         LanguageRegistry.addName(saltore, "Salt ore");
  477.                         GameRegistry.registerBlock(saltore, "Salt ore");
  478.                  
  479.                         //SaltBlock-----
  480.                         LanguageRegistry.addName(saltblock, "Salt block");    
  481.                         GameRegistry.registerBlock(saltblock, "Salt block");
  482.                        
  483.                         //RawPizza-----
  484.                         LanguageRegistry.addName(rawpizza, "Raw pizza");      
  485.                        
  486.                         //Pizza--------
  487.                         LanguageRegistry.addName(pizza, "Pizza");      
  488.                         GameRegistry.registerBlock(pizza, "Pizza");
  489.                         GameRegistry.addSmelting(FoodPlus.rawpizza.itemID, new ItemStack(FoodPlus.pizzaitem), 0.1f);
  490.                    
  491.                         //PizzaSlice-----
  492.                         LanguageRegistry.addName(pizzaslice, "Pizza Slice");  
  493.                    
  494.                         //PartyBlock-----
  495.                         GameRegistry.registerBlock(partyblock, "Partyblock");
  496.                         LanguageRegistry.addName(partyblock, "Partyblock");
  497.                        
  498.                         //Tomato-------
  499.                         LanguageRegistry.addName(tomato, "Tomato");
  500.                  
  501.                         //BeefPie----
  502.                         GameRegistry.registerBlock(beefpie, "Beef pie");
  503.                         LanguageRegistry.addName(beefpie, "Beef pie");
  504.                        
  505.                         //Cheese-----
  506.                         LanguageRegistry.addName(cheese, "Cheese");
  507.                        
  508.                         //Strawberry-----
  509.                         LanguageRegistry.addName(strawberry, "Strawberry");
  510.                        
  511.                         //Strawberry milkshake------
  512.                         LanguageRegistry.addName(strawberrymilkshake, "Strawberry milkshake");
  513.                        
  514.                         //Cheesepasta-------
  515.                         LanguageRegistry.addName(cheesepasta, "Cheese pasta");
  516.                        
  517.                         //Crisps----------
  518.                         LanguageRegistry.addName(crisps, "Crisps");
  519.                        
  520.                         //Fried egg-------
  521.                         LanguageRegistry.addName(friedegg, "Fried egg");
  522.                         GameRegistry.addSmelting(Item.egg.itemID, new ItemStack(FoodPlus.friedegg), 0.1f);
  523.                        
  524.                         //Flour--------
  525.                         LanguageRegistry.addName(flour, "Flour");
  526.                        
  527.                         //Donut base-------
  528.                         LanguageRegistry.addName(donutbase, "Donut");
  529.                        
  530.                         //Chocolate donut-----
  531.                         LanguageRegistry.addName(chocolatedonut, "Chocolate donut");
  532.                        
  533.                         //Strawberry donut-----
  534.                         LanguageRegistry.addName(strawberrydonut, "Strawberry donut");
  535.                        
  536.                         //Tomatocrop------
  537.                         LanguageRegistry.addName(tomatocrop, "Tomato crop");  
  538.                         GameRegistry.registerBlock(tomatocrop, "Tomato crop");
  539.                        
  540.                         //Strawberrycrop----
  541.                         LanguageRegistry.addName(strawberrycrop, "Strawberry crop");  
  542.                         GameRegistry.registerBlock(strawberrycrop, "Strawberry crop");
  543.                
  544.                         //Tomatoseed------
  545.                         LanguageRegistry.addName(tomatoseed, "Tomato seeds");
  546.                        
  547.                         //Starwberryseed-----
  548.                         LanguageRegistry.addName(strawberryseed, "Strawberry seeds");
  549.            
  550.                         //Worktop-------
  551.                         GameRegistry.registerBlock(worktop, "Worktop");
  552.                         LanguageRegistry.addName(worktop, "Worktop");
  553.                         GameRegistry.addRecipe(new ItemStack(FoodPlus.worktop), "PKP","PCP","PPP", Character.valueOf('P'), Block.cobblestone, Character.valueOf('C'), Block.workbench, Character.valueOf('K'), FoodPlus.knife);
  554.                        
  555.                         //Knife-----------
  556.                         LanguageRegistry.addName(knife, "Knife");
  557.                         GameRegistry.addRecipe(new ItemStack(FoodPlus.knife), "Z  "," Z ","  Y", Character.valueOf('Z'), Item.ingotIron, Character.valueOf('Y'), Item.stick);
  558.                        
  559.                         //Strawberry jam-----
  560.                         LanguageRegistry.addName(strawberryjam, "Strawberry jam");
  561.                        
  562.                         //Waffle---------
  563.                         LanguageRegistry.addName(waffle, "Waffle");
  564.                        
  565.                         //Kebab
  566.                         LanguageRegistry.addName(kebab, "Kebab");
  567.                        
  568.                         //Fishandchips
  569.                         LanguageRegistry.addName(fishandchips, "Fish and chips");
  570.                        
  571.                         //Candypickaxe
  572.                         LanguageRegistry.addName(candypickaxe, "Candy Pickaxe");
  573.                        
  574.                         //Candyaxe
  575.                 LanguageRegistry.addName(candyaxe, "Candy Axe");
  576.                
  577.                 //Candyhoe
  578.                 LanguageRegistry.addName(candyhoe, "Candy Hoe");
  579.                
  580.                 //Candysword
  581.                 LanguageRegistry.addName(candysword, "Candy Sword");
  582.                
  583.                 //Candyspade
  584.                 LanguageRegistry.addName(candyspade, "Candy Spade");
  585.                
  586.                 //Pie item
  587.                 LanguageRegistry.addName(beefpieitem, "Beef pie");
  588.                
  589.                 //Chocolatecake item
  590.                 LanguageRegistry.addName(chocolatecakeitem, "Chocolate cake");
  591.                
  592.                 //Pizza item
  593.                 LanguageRegistry.addName(pizzaitem, "Pizza");
  594.                
  595.                 //Glass
  596.                 LanguageRegistry.addName(glass, "Glass");
  597.                
  598.                 //Applejuice
  599.                 LanguageRegistry.addName(applejuice, "Apple Juice");
  600.                
  601.                 //Riceseed
  602.                 LanguageRegistry.addName(riceseed, "Rice");
  603.                
  604.                 //Rice
  605.                 LanguageRegistry.addName(rice, "Rice");
  606.                
  607.                
  608.                
  609.        }
  610. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement