public static void init() { MicroMaterialRegistry.registerMaterial( new BlockMicroMaterial(RemIMPluginsCommon.getFrameBlock(), 0), "tile.hollowCarriage.open"); MicroMaterialRegistry.registerMaterial( new BlockMicroMaterial(RemIMPluginsCommon.getFrameBlock(), 1), "tile.hollowCarriage.closed"); MicroMaterialRegistry.registerMaterial( new BlockMicroMaterial(RemIMPluginsCommon.getFrameBlock(), 2), "tile.hollowCarriage.corners"); MultiPartRegistry.registerParts( new IPartFactory() { @Override public TMultiPart createPart(String arg0, boolean arg1) { if (arg0.equals("FMPCarriage")) { return new PartCarriageFMP(); } return null; } }, new String[] {"FMPCarriage"}); RiMRegistry.registerFrameCarriageMatcher(new FMPCarriageMatcher()); RiMRegistry.registerCloseableFactory(new FMPCloseableRetriever()); RiMRegistry.registerFrameCarriageMatcher(new MicroblockCarriageMatcher()); RiMRegistry.registerCloseableFactory(new MicroblockCloseableFactory()); }
@Override public void init() { GameRegistry.registerWorldGenerator(GenerationManager.instance); itemWoolGin = new ItemWoolGin(Configurator.item_woolginID.getInt()); itemBackpack = new ItemBackpack(Configurator.item_backpackID.getInt()); blockOres = new BlockOre(Configurator.block_oresID.getInt()); GameRegistry.registerBlock(blockOres, ItemBlockOre.class, "projectred.exploration.ore"); for (EnumOre o : EnumOre.VALID_ORES) { MinecraftForge.setBlockHarvestLevel(blockOres, "pickaxe", o.harvesLevel); } blockStones = new BlockSpecialStone(Configurator.block_stonesID.getInt()); GameRegistry.registerBlock( blockStones, ItemBlockSpecialStone.class, "projectred.exploration.stone"); if (Configurator.gen_SpreadingMoss.getBoolean(true)) { int mc = Block.cobblestoneMossy.blockID; Block.blocksList[mc] = null; new BlockPhotosyntheticCobblestone(mc); int sb = Block.stoneBrick.blockID; Block.blocksList[sb] = null; new BlockPhotosyntheticStoneBrick(sb); } toolMaterialRuby = EnumHelper.addToolMaterial("RUBY", 2, 500, 8.0F, 4, 12); toolMaterialSapphire = EnumHelper.addToolMaterial("SAPPHIRE", 2, 500, 8.0F, 3, 16); toolMaterialPeridot = EnumHelper.addToolMaterial("PERIDOT", 2, 500, 8.75F, 3.25F, 12); itemRubyAxe = new ItemGemAxe(Configurator.item_rubyAxe.getInt(), EnumSpecialTool.RUBYAXE); itemSapphireAxe = new ItemGemAxe(Configurator.item_sapphireAxe.getInt(), EnumSpecialTool.SAPPHIREAXE); itemPeridotAxe = new ItemGemAxe(Configurator.item_peridotAxe.getInt(), EnumSpecialTool.PERIDOTAXE); MinecraftForge.setToolClass(itemRubyAxe, "axe", 2); MinecraftForge.setToolClass(itemSapphireAxe, "axe", 2); MinecraftForge.setToolClass(itemPeridotAxe, "axe", 2); itemRubyHoe = new ItemGemHoe(Configurator.item_rubyHoe.getInt(), EnumSpecialTool.RUBYHOE); itemSapphireHoe = new ItemGemHoe(Configurator.item_sapphireHoe.getInt(), EnumSpecialTool.SAPPHIREHOE); itemPeridotHoe = new ItemGemHoe(Configurator.item_peridotHoe.getInt(), EnumSpecialTool.PERIDOTHOE); MinecraftForge.setToolClass(itemRubyHoe, "hoe", 2); MinecraftForge.setToolClass(itemSapphireHoe, "hoe", 2); MinecraftForge.setToolClass(itemPeridotHoe, "hoe", 2); itemRubyPickaxe = new ItemGemPickaxe(Configurator.item_rubyPickaxe.getInt(), EnumSpecialTool.RUBYPICKAXE); itemSapphirePickaxe = new ItemGemPickaxe( Configurator.item_sapphirePickaxe.getInt(), EnumSpecialTool.SAPPHIREPICKAXE); itemPeridotPickaxe = new ItemGemPickaxe( Configurator.item_peridotPickaxe.getInt(), EnumSpecialTool.PERIDOTPICKAXE); MinecraftForge.setToolClass(itemRubyPickaxe, "pickaxe", 2); MinecraftForge.setToolClass(itemSapphirePickaxe, "pickaxe", 2); MinecraftForge.setToolClass(itemPeridotPickaxe, "pickaxe", 2); itemRubyShovel = new ItemGemShovel(Configurator.item_rubyShovel.getInt(), EnumSpecialTool.RUBYSHOVEL); itemSapphireShovel = new ItemGemShovel( Configurator.item_sapphireShovel.getInt(), EnumSpecialTool.SAPPHIRESHOVEL); itemPeridotShovel = new ItemGemShovel(Configurator.item_peridotShovel.getInt(), EnumSpecialTool.PERIDOTSHOVEL); MinecraftForge.setToolClass(itemRubyShovel, "shovel", 2); MinecraftForge.setToolClass(itemSapphireShovel, "shovel", 2); MinecraftForge.setToolClass(itemPeridotShovel, "shovel", 2); itemRubySword = new ItemGemSword(Configurator.item_rubySword.getInt(), EnumSpecialTool.RUBYSWORD); itemSapphireSword = new ItemGemSword(Configurator.item_sapphireSword.getInt(), EnumSpecialTool.SAPPHIRESWORD); itemPeridotSword = new ItemGemSword(Configurator.item_peridotSword.getInt(), EnumSpecialTool.PERIDOTSWORD); MinecraftForge.setToolClass(itemRubySword, "sword", 2); MinecraftForge.setToolClass(itemSapphireSword, "sword", 2); MinecraftForge.setToolClass(itemPeridotSword, "sword", 2); itemWoodSaw = new ItemGemSaw(Configurator.item_woodSaw.getInt(), EnumSpecialTool.WOODSAW); itemStoneSaw = new ItemGemSaw(Configurator.item_stoneSaw.getInt(), EnumSpecialTool.STONESAW); itemIronSaw = new ItemGemSaw(Configurator.item_ironSaw.getInt(), EnumSpecialTool.IRONSAW); itemGoldSaw = new ItemGemSaw(Configurator.item_goldSaw.getInt(), EnumSpecialTool.GOLDSAW); itemRubySaw = new ItemGemSaw(Configurator.item_rubySaw.getInt(), EnumSpecialTool.RUBYSAW); itemSapphireSaw = new ItemGemSaw(Configurator.item_sapphireSaw.getInt(), EnumSpecialTool.SAPPHIRESAW); itemPeridotSaw = new ItemGemSaw(Configurator.item_peridotSaw.getInt(), EnumSpecialTool.PERIDOTSAW); itemDiamondSaw = new ItemGemSaw(Configurator.item_diamondSaw.getInt(), EnumSpecialTool.DIAMONDSAW); itemWoodSickle = new ItemGemSickle(Configurator.item_woodSickle.getInt(), EnumSpecialTool.WOODSICKLE); itemStoneSickle = new ItemGemSickle(Configurator.item_stoneSickle.getInt(), EnumSpecialTool.STONESICKLE); itemIronSickle = new ItemGemSickle(Configurator.item_ironSickle.getInt(), EnumSpecialTool.IRONSICKLE); itemGoldSickle = new ItemGemSickle(Configurator.item_goldSickle.getInt(), EnumSpecialTool.GOLDSICKLE); itemRubySickle = new ItemGemSickle(Configurator.item_rubySickle.getInt(), EnumSpecialTool.RUBYSICKLE); itemSapphireSickle = new ItemGemSickle( Configurator.item_sapphireSickle.getInt(), EnumSpecialTool.SAPPHIRESICKLE); itemPeridotSickle = new ItemGemSickle(Configurator.item_peridotSickle.getInt(), EnumSpecialTool.PERIDOTSICKLE); itemDiamondSickle = new ItemGemSickle(Configurator.item_diamondSickle.getInt(), EnumSpecialTool.DIAMONDSICKLE); for (EnumSpecialStone s : EnumSpecialStone.VALID_STONE) { MicroMaterialRegistry.registerMaterial( new BlockMicroMaterial(ProjectRedExploration.blockStones, s.meta), ProjectRedExploration.blockStones.getUnlocalizedName() + (s.meta > 0 ? "_" + s.meta : "")); } }