Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void preInit(FMLPreInitializationEvent event) {
- //Item/Block init and registering
- //Config handling
- YCEntity.mainRegistry();
- //Items
- itemTable = new ItemTable().setUnlocalizedName("ItemTable").setTextureName("yc:itemtable");
- itemStick = new ItemStick().setUnlocalizedName("ItemStick").setTextureName("yc:itemstick").setCreativeTab(tabYoshiCraft);
- itemCaveShard = new ItemCaveShard().setUnlocalizedName("ItemCaveShard").setTextureName("yc:itemcaveshhard").setCreativeTab(tabYoshiCraft);
- itemCocoPowder = new ItemCocoPowder().setUnlocalizedName("ItemCocoPowder").setTextureName("yc:itemcocopowder").setCreativeTab(tabYoshiCraft);
- itemYoshiDroppings = new ItemYoshiDroppings().setUnlocalizedName("ItemYoshiDroppings").setTextureName("yc:itemyoshimess").setCreativeTab(tabYoshiCraft);
- //Grenades
- itemYoshiGrenade = new ItemYoshiGrenade().setUnlocalizedName("ItemYoshiGrenade").setTextureName("yc:itemyoshigrenade").setCreativeTab(tabYoshiCraft);
- //Ingots
- itemIngot = new ItemIngot().setUnlocalizedName("ItemIngot").setTextureName("yc:itemingot").setCreativeTab(tabYoshiCraft);
- itemSpiritIngot = new ItemSpiritIngot().setUnlocalizedName("ItemSpiritIngot").setTextureName("yc:itemspiritingot").setCreativeTab(tabYoshiCraft);
- itemYoshiIngot = new ItemYoshiIngot().setUnlocalizedName("ItemYoshiIngot").setTextureName("yc:itemyoshiingot").setCreativeTab(tabYoshiCraft);
- //Ingot Alternatives
- itemTonguePebble = new ItemTonguePebble().setUnlocalizedName("ItemTonguePebble").setTextureName("yc:tonguepebble").setCreativeTab(tabYoshiCraft);
- //Food
- itemTongue = new FoodTongue(8, 0.6F, false).setUnlocalizedName("ItemTongue").setTextureName("yc:itemtongue").setCreativeTab(tabYoshiCraft);
- itemHotTongue = new ItemFood(16, 0.8F, true).setUnlocalizedName("ItemHotTongue").setTextureName("yc:itemhottongue").setCreativeTab(tabYoshiCraft);
- itemBerry = new ItemFood(2, 0.3F, false).setUnlocalizedName("ItemBerry").setTextureName("yc:itemberry").setCreativeTab(tabYoshiCraft);
- itemDuckBread = new FoodDuckBread(6, 0.6F, false).setUnlocalizedName("ItemDuckBread").setTextureName("yc:sqaisheybread").setCreativeTab(tabYoshiCraft);
- itemAdventureChocolate = new FoodAdventureChocolate(6, 0.6F, false).setUnlocalizedName("ItemAdventureChocolate").setTextureName("yc:itemadventurechocolate").setCreativeTab(tabYoshiCraft);
- itemAdventurePoo = new FoodAdventurePoo(1, 0.1F, false).setUnlocalizedName("ItemAdventurePoo").setTextureName("yc:itemadventurepoo").setCreativeTab(tabYoshiCraft);
- itemChocolateBar = new ItemFood(4, 0.5F, false).setUnlocalizedName("ItemChocolateBar").setTextureName("yc:itemchocolatebar").setCreativeTab(tabYoshiCraft);
- itemMuffin = new ItemFood(4, 0.6F, false).setUnlocalizedName("ItemMuffin").setTextureName("yc:itemmuffin").setCreativeTab(tabYoshiCraft);
- itemGrannySmithApple = new ItemFood(4, 0.4F, false).setUnlocalizedName("ItemGrannySmithApple").setTextureName("yc:grannysmithapple").setCreativeTab(tabYoshiCraft);
- itemApplePie = new FoodApplePie(5, 0.5F, false).setUnlocalizedName("ItemApplePie").setTextureName("yc:applepie").setCreativeTab(tabYoshiCraft);
- itemHotApplePie = new FoodWarmApplePie(6, 0.8F, false).setUnlocalizedName("ItemHotApplePie").setTextureName("yc:hotapplepie").setCreativeTab(tabYoshiCraft);
- itemBaconRaw = new ItemFood(4, 0.5F, true).setUnlocalizedName("ItemBaconRaw").setTextureName("yc:baconraw").setCreativeTab(tabYoshiCraft);
- itemBacon = new ItemFood(8, 0.8F, true).setUnlocalizedName("ItemBacon").setTextureName("yc:bacon").setCreativeTab(tabYoshiCraft);
- //Blocks
- blockTable = new BlockTable(Material.rock).setBlockName("BlockTable").setBlockTextureName("yc:blocktable").setCreativeTab(tabYoshiCraft);
- blockLantern = new BlockLantern(Material.rock).setBlockName("BlockLantern").setBlockTextureName("yc:blocklantern").setCreativeTab(tabYoshiCraft);
- blockTongue = new BlockTongue(Material.leaves).setBlockName("BlockTongue").setBlockTextureName("yc:blocktongue").setCreativeTab(tabYoshiCraft);
- blockSpirit = new BlockSpirit(Material.anvil).setBlockName("BlockSpirit").setBlockTextureName("yc:blockspirit").setCreativeTab(tabYoshiCraft);
- blockCaveRock = new BlockCaveRock(Material.rock).setBlockName("BlockCaveRock").setBlockTextureName("yc:blockcaverock").setCreativeTab(tabYoshiCraft);
- blockYoshi = new BlockYoshi(Material.rock).setBlockName("BlockYoshi").setCreativeTab(tabYoshiCraft);
- blockYoshiTrophy = new BlockYoshiTrophy(Material.iron).setBlockName("BlockYoshiTrophy").setBlockTextureName("yc:").setCreativeTab(tabYoshiCraft);
- blockYoshiGlass = new BlockYoshiGlass(Material.glass).setBlockName("BlockYoshiGlass").setBlockTextureName("yc:yoshiglass");
- blockSurface = new BlockSurface(Material.rock).setBlockName("BlockSurface").setBlockTextureName("yc:surface").setCreativeTab(tabYoshiCraft);
- //Portal
- //Chests
- //Furnaces
- yoshiOvenIdle = new YoshiOven(false).setBlockName("YoshiOvenIdle").setCreativeTab(tabYoshiCraft);
- yoshiOvenActive = new YoshiOven(true).setBlockName("YoshiOvenActive");
- //Ores
- blockSpiritOre = new BlockSpiritOre(Material.rock).setBlockName("BlockSpiritOre").setBlockTextureName("yc:blockspiritore").setCreativeTab(tabYoshiCraft);
- blockTongueOre = new BlockTongueOre(Material.rock).setBlockName("BlockTongueOre").setBlockTextureName("yc:blocktongueore").setCreativeTab(tabYoshiCraft);
- blockYoshiOre = new BlockYoshiOre(Material.rock).setBlockName("BlockYoshiOre").setBlockTextureName("yc:blockyoshiore").setCreativeTab(tabYoshiCraft);
- blockEndTongueOre = new BlockEndTongueOre(Material.rock).setBlockName("BlockEndTongueOre").setBlockTextureName("yc:endtongueore").setCreativeTab(tabYoshiCraft);
- blockNetherTongueOre = new BlockNetherTongueOre(Material.rock).setBlockName("BlockNetherTongueOre").setBlockTextureName("yc:nethertongueore").setCreativeTab(tabYoshiCraft);
- //Tools
- legendarySword = new ItemLegendarySword(legendaryToolMaterial).setUnlocalizedName("ItemLegendarySword").setTextureName("yc:itemlegendarysword").setCreativeTab(tabYoshiCraft);
- legendaryPickaxe = new ItemLegendaryPickaxe(legendaryToolMaterial).setUnlocalizedName("ItemLegendaryPickaxe").setTextureName("yc:itemlegendarypickaxe").setCreativeTab(tabYoshiCraft);
- spiritPickaxe = new ItemSpiritPickaxe(spiritToolMaterial).setUnlocalizedName("ItemSpiritPickaxe").setTextureName("yc:itemspiritpickaxe").setCreativeTab(tabYoshiCraft);
- spiritAxe = new ItemSpiritAxe(spiritToolMaterial).setUnlocalizedName("ItemSpiritAxe").setTextureName("yc:itemspiritaxe").setCreativeTab(tabYoshiCraft);
- spiritShovel = new ItemSpiritShovel(spiritToolMaterial).setUnlocalizedName("ItemSpiritShovel").setTextureName("yc:itemspiritshovel").setCreativeTab(tabYoshiCraft);
- spiritHoe = new ItemSpiritHoe(spiritToolMaterial).setUnlocalizedName("ItemSpiritHoe").setTextureName("yc:itemspirithoe").setCreativeTab(tabYoshiCraft);
- spiritSword = new ItemSpiritSword(spiritToolMaterial).setUnlocalizedName("ItemSpiritSword").setTextureName("yc:itemspiritsword").setCreativeTab(tabYoshiCraft);
- tonguePickaxe = new ItemTonguePickaxe(tongueToolMaterial).setUnlocalizedName("ItemTonguePickaxe").setTextureName("yc:itemtonguepickaxe").setCreativeTab(tabYoshiCraft);
- tongueAxe = new ItemTongueAxe(tongueToolMaterial).setUnlocalizedName("ItemTongueAxe").setTextureName("yc:itemtongueaxe").setCreativeTab(tabYoshiCraft);
- tongueShovel = new ItemTongueShovel(tongueToolMaterial).setUnlocalizedName("ItemTongueShovel").setTextureName("yc:itemtongueshovel").setCreativeTab(tabYoshiCraft);
- tongueHoe = new ItemTongueHoe(tongueToolMaterial).setUnlocalizedName("ItemTongueHoe").setTextureName("yc:itemtonguehoe").setCreativeTab(tabYoshiCraft);
- tongueSword = new ItemTongueSword(tongueToolMaterial).setUnlocalizedName("ItemTongueSword").setTextureName("yc:itemtonguesword").setCreativeTab(tabYoshiCraft);
- //Armour
- spiritHelmet = new ItemSpiritArmour(spiritArmourMaterial, 0, 0).setUnlocalizedName("ItemSpiritHelmet").setTextureName("yc:itemspirithelmet").setCreativeTab(tabYoshiCraft);
- spiritChestplate = new ItemSpiritArmour(spiritArmourMaterial, 0, 1).setUnlocalizedName("ItemSpiritChestplate").setTextureName("yc:itemspiritchestplate").setCreativeTab(tabYoshiCraft);
- spiritLeggings = new ItemSpiritArmour(spiritArmourMaterial, 0, 2).setUnlocalizedName("ItemSpiritLeggings").setTextureName("yc:itemspiritleggings").setCreativeTab(tabYoshiCraft);
- spiritBoots = new ItemSpiritArmour(spiritArmourMaterial, 0, 3).setUnlocalizedName("ItemSpiritBoots").setTextureName("yc:itemspiritboots").setCreativeTab(tabYoshiCraft);
- //
- tongueHelmet = new ItemTongueArmour(tongueArmourMaterial, 0, 0).setUnlocalizedName("ItemTongueHelmet").setTextureName("yc:itemtonguehelmet").setCreativeTab(tabYoshiCraft);
- tongueChestplate = new ItemTongueArmour(tongueArmourMaterial, 0, 1).setUnlocalizedName("ItemTongueChestplate").setTextureName("yc:itemtonguechestplate").setCreativeTab(tabYoshiCraft);
- tongueLeggings = new ItemTongueArmour(tongueArmourMaterial, 0, 2).setUnlocalizedName("ItemTongueLeggings").setTextureName("yc:itemtongueleggings").setCreativeTab(tabYoshiCraft);
- tongueBoots = new ItemTongueArmour(tongueArmourMaterial, 0, 3).setUnlocalizedName("ItemTongueBoots").setTextureName("yc:itemtongueboots").setCreativeTab(tabYoshiCraft);
- //
- yoshiHelmet = new ItemYoshiArmour(yoshiArmourMaterial, 0, 0).setUnlocalizedName("ItemYoshiHelmet").setTextureName("yc:itemyoshihelmet").setCreativeTab(tabYoshiCraft);
- yoshiChestplate = new ItemYoshiArmour(yoshiArmourMaterial, 0, 1).setUnlocalizedName("ItemYoshiChestplate").setTextureName("yc:itemyoshichestplate").setCreativeTab(tabYoshiCraft);
- yoshiLeggings = new ItemYoshiArmour(yoshiArmourMaterial, 0, 2).setUnlocalizedName("ItemYoshiLeggings").setTextureName("yc:itemyoshileggings").setCreativeTab(tabYoshiCraft);
- yoshiBoots = new ItemYoshiArmour(yoshiArmourMaterial, 0, 3).setUnlocalizedName("ItemYoshiBoots").setTextureName("yc:itemyoshiboots").setCreativeTab(tabYoshiCraft);
- //Biomes
- BiomesYC.init();
- //Registry
- //Items
- GameRegistry.registerItem(itemTable, itemTable.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemStick, itemStick.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemCaveShard, itemCaveShard.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemCocoPowder, itemCocoPowder.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemYoshiDroppings, itemYoshiDroppings.getUnlocalizedName().substring(5));
- //Grenades
- GameRegistry.registerItem(itemYoshiGrenade, itemYoshiGrenade.getUnlocalizedName().substring(5));
- //Ingots
- GameRegistry.registerItem(itemIngot, itemIngot.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemSpiritIngot, itemSpiritIngot.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemYoshiIngot, itemYoshiIngot.getUnlocalizedName().substring(5));
- //Ingot Alternatives
- GameRegistry.registerItem(itemTonguePebble, itemTonguePebble.getUnlocalizedName().substring(5));
- //Food
- GameRegistry.registerItem(itemTongue, itemTongue.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemHotTongue, itemHotTongue.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemBerry, itemBerry.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemDuckBread, itemDuckBread.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemAdventureChocolate, itemAdventureChocolate.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemAdventurePoo, itemAdventurePoo.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemChocolateBar, itemChocolateBar.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemMuffin, itemMuffin.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemGrannySmithApple, itemGrannySmithApple.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemApplePie, itemApplePie.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemHotApplePie, itemHotApplePie.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemBaconRaw, itemBaconRaw.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(itemBacon, itemBacon.getUnlocalizedName().substring(5));
- //Blocks
- GameRegistry.registerBlock(blockTable, blockTable.getUnlocalizedName().substring(5));
- GameRegistry.registerBlock(blockLantern, blockLantern.getUnlocalizedName().substring(5));
- GameRegistry.registerBlock(blockTongue, blockTongue.getUnlocalizedName().substring(5));
- GameRegistry.registerBlock(blockSpirit, blockSpirit.getUnlocalizedName().substring(5));
- GameRegistry.registerBlock(blockCaveRock, blockCaveRock.getUnlocalizedName().substring(5));
- GameRegistry.registerBlock(blockYoshi, blockYoshi.getUnlocalizedName().substring(5));
- GameRegistry.registerBlock(blockYoshiTrophy, blockYoshiTrophy.getUnlocalizedName().substring(5));
- GameRegistry.registerBlock(blockYoshiGlass, blockYoshiGlass.getUnlocalizedName().substring(5));
- GameRegistry.registerBlock(blockSurface, blockSurface.getUnlocalizedName().substring(5));
- //Portal
- GameRegistry.registerBlock(yoshiPortal, yoshiPortal.getUnlocalizedName().substring(5));
- //Chests
- //Furnaces
- GameRegistry.registerBlock(yoshiOvenIdle, yoshiOvenIdle.getUnlocalizedName().substring(5));
- GameRegistry.registerBlock(yoshiOvenActive, yoshiOvenActive.getUnlocalizedName().substring(5));
- //Ores
- GameRegistry.registerBlock(blockSpiritOre, blockSpiritOre.getUnlocalizedName().substring(5));
- GameRegistry.registerBlock(blockTongueOre, blockTongueOre.getUnlocalizedName().substring(5));
- GameRegistry.registerBlock(blockYoshiOre, blockYoshiOre.getUnlocalizedName().substring(5));
- GameRegistry.registerBlock(blockEndTongueOre, blockEndTongueOre.getUnlocalizedName().substring(5));
- GameRegistry.registerBlock(blockNetherTongueOre, blockNetherTongueOre.getUnlocalizedName().substring(5));
- //Tools
- GameRegistry.registerItem(legendarySword, legendarySword.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(legendaryPickaxe, legendaryPickaxe.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(spiritPickaxe, spiritPickaxe.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(spiritAxe, spiritAxe.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(spiritShovel, spiritShovel.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(spiritHoe, spiritHoe.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(spiritSword, spiritSword.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(tonguePickaxe, tonguePickaxe.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(tongueAxe, tongueAxe.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(tongueShovel, tongueShovel.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(tongueHoe, tongueHoe.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(tongueSword, tongueSword.getUnlocalizedName().substring(5));
- //Armour
- GameRegistry.registerItem(spiritHelmet, spiritHelmet.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(spiritChestplate, spiritChestplate.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(spiritLeggings, spiritLeggings.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(spiritBoots, spiritBoots.getUnlocalizedName().substring(5));
- //
- GameRegistry.registerItem(tongueHelmet, tongueHelmet.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(tongueChestplate, tongueChestplate.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(tongueLeggings, tongueLeggings.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(tongueBoots, tongueBoots.getUnlocalizedName().substring(5));
- //
- GameRegistry.registerItem(yoshiHelmet, yoshiHelmet.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(yoshiChestplate, yoshiChestplate.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(yoshiLeggings, yoshiLeggings.getUnlocalizedName().substring(5));
- GameRegistry.registerItem(yoshiBoots, yoshiBoots.getUnlocalizedName().substring(5));
- //System.out
- System.out.println(blockCaveRock.getUnlocalizedName().substring(5));
- System.out.println(blockSpirit.getUnlocalizedName().substring(5));
- System.out.println(blockTongue.getUnlocalizedName().substring(5));
- System.out.println(blockLantern.getUnlocalizedName().substring(5));
- System.out.println(blockTable.getUnlocalizedName().substring(5));
- System.out.println(blockYoshi.getUnlocalizedName().substring(5));
- System.out.println(blockSpiritOre.getUnlocalizedName().substring(5));
- System.out.println(blockTongueOre.getUnlocalizedName().substring(5));
- System.out.println(blockYoshiOre.getUnlocalizedName().substring(5));
- System.out.println(blockYoshiTrophy.getUnlocalizedName().substring(5));
- System.out.println(blockEndTongueOre.getUnlocalizedName().substring(5));
- System.out.println(blockNetherTongueOre.getUnlocalizedName().substring(5));
- System.out.println(blockYoshiGlass.getUnlocalizedName().substring(5));
- System.out.println(blockSurface.getUnlocalizedName().substring(5));
- System.out.println(yoshiPortal.getUnlocalizedName().substring(5));
- //World Generation
- GameRegistry.registerWorldGenerator(new OreGeneration(), 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement