Java Code Examples for cpw.mods.fml.common.registry.GameRegistry#registerTileEntity()
The following examples show how to use
cpw.mods.fml.common.registry.GameRegistry#registerTileEntity() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CoFHCore.java From PneumaticCraft with GNU General Public License v3.0 | 6 votes |
@Override public void preInit(){ pneumaticDynamo = new BlockPneumaticDynamo(Material.iron).setHardness(3.0F).setResistance(10.0F).setBlockName("pneumaticDynamo"); fluxCompressor = new BlockFluxCompressor(Material.iron).setHardness(3.0F).setResistance(10.0F).setBlockName("fluxCompressor"); Blockss.registerBlock(pneumaticDynamo); Blockss.registerBlock(fluxCompressor); GameRegistry.registerTileEntity(TileEntityPneumaticDynamo.class, "PneumaticCraft_pneumaticDynamo"); GameRegistry.registerTileEntity(TileEntityFluxCompressor.class, "PneumaticCraft_fluxCompressor"); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Itemss.compressedIronGear), " i ", "isi", " i ", 'i', Names.INGOT_IRON_COMPRESSED, 's', Items.iron_ingot)); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(pneumaticDynamo), " t ", "gig", "ipi", 'i', Names.INGOT_IRON_COMPRESSED, 'g', Itemss.compressedIronGear, 't', Blockss.advancedPressureTube, 'p', Itemss.printedCircuitBoard)); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(fluxCompressor), "gcp", "frt", "gqp", 'p', Itemss.printedCircuitBoard, 'c', Itemss.compressedIronGear, 'g', Items.redstone, 't', new ItemStack(Blockss.advancedPressureTube, 1, 0), 'r', Itemss.turbineRotor, 'f', Blocks.redstone_block, 'q', Blocks.furnace)); PneumaticRegistry.getInstance().registerBlockTrackEntry(new BlockTrackEntryRF()); PneumaticRegistry.getInstance().registerCustomBlockInteractor(new DroneInteractRFExport()); PneumaticRegistry.getInstance().registerCustomBlockInteractor(new DroneInteractRFImport()); WidgetRegistrator.register(new ProgWidgetRFCondition()); WidgetRegistrator.register(new ProgWidgetDroneConditionRF()); MinecraftForge.EVENT_BUS.register(this); }
Example 2
Source File: WerkstoffLoader.java From bartworks with MIT License | 6 votes |
static void gameRegistryHandler() { if (SideReference.Side.Client) RenderingRegistry.registerBlockHandler(BW_Renderer_Block_Ores.INSTANCE); GameRegistry.registerTileEntity(BW_MetaGeneratedOreTE.class, "bw.blockoresTE"); GameRegistry.registerTileEntity(BW_MetaGeneratedSmallOreTE.class, "bw.blockoresSmallTE"); GameRegistry.registerTileEntity(BW_MetaGenerated_WerkstoffBlock_TE.class, "bw.werkstoffblockTE"); GameRegistry.registerTileEntity(BW_MetaGeneratedBlocks_Casing_TE.class, "bw.werkstoffblockcasingTE"); GameRegistry.registerTileEntity(BW_MetaGeneratedBlocks_CasingAdvanced_TE.class, "bw.werkstoffblockscasingadvancedTE"); WerkstoffLoader.BWOres = new BW_MetaGenerated_Ores(Material.rock, BW_MetaGeneratedOreTE.class, "bw.blockores"); WerkstoffLoader.BWSmallOres = new BW_MetaGenerated_SmallOres(Material.rock, BW_MetaGeneratedSmallOreTE.class, "bw.blockoresSmall"); WerkstoffLoader.BWBlocks = new BW_MetaGenerated_WerkstoffBlocks(Material.iron, BW_MetaGenerated_WerkstoffBlock_TE.class, "bw.werkstoffblocks"); WerkstoffLoader.BWBlockCasings = new BW_MetaGeneratedBlocks_Casing(Material.iron, BW_MetaGeneratedBlocks_Casing_TE.class, "bw.werkstoffblockscasing", blockCasing); WerkstoffLoader.BWBlockCasingsAdvanced = new BW_MetaGeneratedBlocks_Casing(Material.iron, BW_MetaGeneratedBlocks_CasingAdvanced_TE.class, "bw.werkstoffblockscasingadvanced", blockCasingAdvanced); GameRegistry.registerBlock(WerkstoffLoader.BWOres, BW_MetaGeneratedBlock_Item.class, "bw.blockores.01"); GameRegistry.registerBlock(WerkstoffLoader.BWSmallOres, BW_MetaGeneratedBlock_Item.class, "bw.blockores.02"); GameRegistry.registerBlock(WerkstoffLoader.BWBlocks, BW_MetaGeneratedBlock_Item.class, "bw.werkstoffblocks.01"); GameRegistry.registerBlock(WerkstoffLoader.BWBlockCasings, BW_MetaGeneratedBlock_Item.class, "bw.werkstoffblockscasing.01"); GameRegistry.registerBlock(WerkstoffLoader.BWBlockCasingsAdvanced, BW_MetaGeneratedBlock_Item.class, "bw.werkstoffblockscasingadvanced.01"); GTMetaItemEnhancer.init(); }
Example 3
Source File: ForbiddenBlocks.java From ForbiddenMagic with Do What The F*ck You Want To Public License | 6 votes |
public static void addBlocks() { arcaneCake = GameRegistry.registerBlock(new BlockArcaneCake().setBlockName("ArcaneCake"), "ArcaneCake"); wrathCage = GameRegistry.registerBlock(new BlockWrathCage().setBlockName("WrathCage"), "WrathCage"); GameRegistry.registerTileEntity(TileEntityWrathCage.class, "WrathCage"); blackFlower = GameRegistry.registerBlock(new BlockBlackFlower().setBlockName("InkFlower"), "InkFlower"); starBlock = GameRegistry.registerBlock(new BlockResource().setBlockName("StarBlock"), "StarBlock"); OreDictionary.registerOre("blockNetherStar", new ItemStack(starBlock, 1, 0)); roseBush = GameRegistry.registerBlock(new BlockRoseBush(), "UmbralBush"); taintLog = GameRegistry.registerBlock(new BlockLogTainted().setBlockName("TaintLog"), "TaintLog"); taintPlanks = GameRegistry.registerBlock(new BlockPlanksTainted().setBlockName("TaintPlank"), "TaintPlank"); taintLeaves = GameRegistry.registerBlock(new BlockLeavesTainted().setBlockName("TaintLeaves"), "TaintLeaves"); taintSapling = GameRegistry.registerBlock(new BlockSaplingTainted().setBlockName("TaintSapling"), "TaintSapling"); taintStone = GameRegistry.registerBlock(new BlockStoneTainted(), ItemBlockStoneTainted.class, "TaintBlock"); }
Example 4
Source File: EnderStorageProxy.java From EnderStorage with MIT License | 6 votes |
public void init() { blockEnderChest = new BlockEnderStorage(); blockEnderChest.setBlockName("enderchest"); GameRegistry.registerBlock(blockEnderChest, ItemEnderStorage.class, "enderChest"); MinecraftForge.EVENT_BUS.register(blockEnderChest); itemEnderPouch = new ItemEnderPouch(); itemEnderPouch.setUnlocalizedName("enderpouch"); GameRegistry.registerItem(itemEnderPouch, "enderPouch"); GameRegistry.registerTileEntity(TileEnderChest.class, "Ender Chest"); GameRegistry.registerTileEntity(TileEnderTank.class, "Ender Tank"); PacketCustom.assignHandler(EnderStorageSPH.channel, new EnderStorageSPH()); EnderStorageRecipe.init(); }
Example 5
Source File: IC2TileRegistry.java From Electro-Magic-Tools with GNU General Public License v3.0 | 5 votes |
public static void registerTEs() { GameRegistry.registerTileEntity(TileEntityPotentiaGenerator.class, "tileentitypotentiagenerator"); GameRegistry.registerTileEntity(TileEntityIgnisGenerator.class, "tileentityignisgenerator"); GameRegistry.registerTileEntity(TileEntityAuramGenerator.class, "tileentityauramgenerator"); GameRegistry.registerTileEntity(TileEntityArborGenerator.class, "tileentityarborgenerator"); GameRegistry.registerTileEntity(TileEntityAerGenerator.class, "tileentityaergenerator"); GameRegistry.registerTileEntity(TileEntityIndustrialWandRecharge.class, "tileentityindustrialwandrecharge"); GameRegistry.registerTileEntity(TileEntityCompressedSolar.class, "tileentitycompressedsolar"); GameRegistry.registerTileEntity(TileEntityDoubleCompressedSolar.class, "tileentitydoublecompressedsolar"); GameRegistry.registerTileEntity(TileEntityTripleCompressedSolar.class, "tileentitytriplecompressedsolar"); GameRegistry.registerTileEntity(TileEntityEtherealMacerator.class, "tileentityetherealmacerator"); GameRegistry.registerTileEntity(TileEntityWaterSolar.class, "tileentitywatersolar"); GameRegistry.registerTileEntity(TileEntityDoubleWaterSolar.class, "tileentitydoublewatersolar"); GameRegistry.registerTileEntity(TileEntityTripleWaterSolar.class, "tileentitytriplewatersolar"); GameRegistry.registerTileEntity(TileEntityDarkSolar.class, "tileentitydarksolar"); GameRegistry.registerTileEntity(TileEntityDoubleDarkSolar.class, "tileentitydoubledarksolar"); GameRegistry.registerTileEntity(TileEntityTripleDarkSolar.class, "tileentitytripledarksolar"); GameRegistry.registerTileEntity(TileEntityOrderSolar.class, "tileentityordersolar"); GameRegistry.registerTileEntity(TileEntityDoubleOrderSolar.class, "tileentitydoubleordersolar"); GameRegistry.registerTileEntity(TileEntityTripleOrderSolar.class, "tileentitytripleordersolar"); GameRegistry.registerTileEntity(TileEntityFireSolar.class, "tileentityfiresolar"); GameRegistry.registerTileEntity(TileEntityDoubleFireSolar.class, "tileentitydoublefiresolar"); GameRegistry.registerTileEntity(TileEntityTripleFireSolar.class, "tileentitytriplefiresolar"); GameRegistry.registerTileEntity(TileEntityAirSolar.class, "tileentityairsolar"); GameRegistry.registerTileEntity(TileEntityDoubleAirSolar.class, "tileentitydoubleairsolar"); GameRegistry.registerTileEntity(TileEntityTripleAirSolar.class, "tileentitytripleairsolar"); GameRegistry.registerTileEntity(TileEntityEarthSolar.class, "tileentityearthsolar"); GameRegistry.registerTileEntity(TileEntityDoubleEarthSolar.class, "tileentitydoubleearthsolar"); GameRegistry.registerTileEntity(TileEntityTripleEarthSolar.class, "tileentitytripleearthsolar"); GameRegistry.registerTileEntity(TileEntityEssentiaGenerator.class, "tileentityessentiagenerator"); }
Example 6
Source File: ModBlocks.java From GardenCollection with MIT License | 5 votes |
public void init () { woodWindowBox = new BlockWindowBox(makeName("woodWindowBox"), Material.wood); stoneWindowBox = new BlockWindowBoxStone(makeName("stoneWindowBox")); decorativePot = new BlockDecorativePot(makeName("decorativePot")); largePot = new BlockLargePotStandard(makeName("largePot")); largePotColored = new BlockLargePotColored(makeName("largePotColored")); mediumPot = new BlockMediumPotStandard(makeName("mediumPot")); mediumPotColored = new BlockMediumPotColored(makeName("mediumPotColored")); potteryTable = new BlockPotteryTable(makeName("potteryTable")); GameRegistry.registerBlock(woodWindowBox, ItemWindowBox.class, "wood_window_box"); GameRegistry.registerBlock(stoneWindowBox, ItemWindowBox.class, "stone_window_box"); GameRegistry.registerBlock(decorativePot, ItemDecorativePot.class, "decorative_pot"); GameRegistry.registerBlock(largePot, ItemLargePot.class, "large_pot"); GameRegistry.registerBlock(largePotColored, ItemLargePot.class, "large_pot_colored"); GameRegistry.registerBlock(mediumPot, ItemMediumPot.class, "medium_pot"); GameRegistry.registerBlock(mediumPotColored, ItemMediumPot.class, "medium_pot_colored"); GameRegistry.registerBlock(potteryTable, "pottery_table"); GameRegistry.registerTileEntity(TileEntityWindowBox.class, ModBlocks.getQualifiedName(woodWindowBox)); GameRegistry.registerTileEntity(TileEntityDecorativePot.class, ModBlocks.getQualifiedName(decorativePot)); GameRegistry.registerTileEntity(TileEntityLargePot.class, ModBlocks.getQualifiedName(largePot)); GameRegistry.registerTileEntity(TileEntityLargePot.class, ModBlocks.getQualifiedName(largePotColored)); GameRegistry.registerTileEntity(TileEntityMediumPot.class, ModBlocks.getQualifiedName(mediumPot)); GameRegistry.registerTileEntity(TileEntityMediumPot.class, ModBlocks.getQualifiedName(mediumPotColored)); GameRegistry.registerTileEntity(TileEntityPotteryTable.class, ModBlocks.getQualifiedName(potteryTable)); }
Example 7
Source File: OpenComputers.java From PneumaticCraft with GNU General Public License v3.0 | 5 votes |
@Override public void preInit(){ droneInterface = new BlockDroneInterface(Material.iron).setBlockName("droneInterface"); Blockss.registerBlock(droneInterface); GameRegistry.registerTileEntity(TileEntityDroneInterface.class, "droneInterface"); WidgetRegistrator.register(new ProgWidgetCC()); }
Example 8
Source File: ChunkLoaderProxy.java From ChickenChunks with MIT License | 5 votes |
public void init() { blockChunkLoader = new BlockChunkLoader(); blockChunkLoader.setBlockName("chickenChunkLoader").setCreativeTab(CreativeTabs.tabMisc); GameRegistry.registerBlock(blockChunkLoader, ItemChunkLoader.class, "chickenChunkLoader"); GameRegistry.registerTileEntity(TileChunkLoader.class, "ChickenChunkLoader"); GameRegistry.registerTileEntity(TileSpotLoader.class, "ChickenSpotLoader"); PacketCustom.assignHandler(ChunkLoaderSPH.channel, new ChunkLoaderSPH()); ChunkLoaderManager.initConfig(config); MinecraftForge.EVENT_BUS.register(new ChunkLoaderEventHandler()); FMLCommonHandler.instance().bus().register(new ChunkLoaderEventHandler()); ChunkLoaderManager.registerMod(instance); GameRegistry.addRecipe(new ItemStack(blockChunkLoader, 1, 0), " p ", "ggg", "gEg", 'p', Items.ender_pearl, 'g', Items.gold_ingot, 'd', Items.diamond, 'E', Blocks.enchanting_table ); GameRegistry.addRecipe(new ItemStack(blockChunkLoader, 10, 1), "ppp", "pcp", "ppp", 'p', Items.ender_pearl, 'c', new ItemStack(blockChunkLoader, 1, 0) ); }
Example 9
Source File: CommonProxy.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void preInit(FMLPreInitializationEvent evt) { GameRegistry.registerTileEntity(FWTile.class, "novaTile"); int globalUniqueEntityId = EntityRegistry.findGlobalUniqueEntityId(); EntityRegistry.registerGlobalEntityID(FWEntity.class, "novaEntity", globalUniqueEntityId); EntityRegistry.registerModEntity(FWEntity.class, "novaEntity", globalUniqueEntityId, NovaMinecraft.instance, 64, 20, true); }
Example 10
Source File: MainRegistry.java From NewHorizonsCoreMod with GNU General Public License v3.0 | 5 votes |
private void InitAdditionalBlocks() { GameRegistry.registerBlock(_mBlockBabyChest, ItemBlockBabyChest.class, "BabyChest"); GameRegistry.addShapelessRecipe(new ItemStack(_mBlockBabyChest, 9), new ItemStack(Blocks.chest, 1, 0)); GameRegistry.registerTileEntity(TileEntityBabyChest.class, "teBabyChest"); NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandler()); proxy.registerRenderInfo(); }
Example 11
Source File: CommonProxy.java From ExtraCells1 with MIT License | 5 votes |
public void RegisterTileEntities() { GameRegistry.registerTileEntity(TileEntitySolderingStation.class, "tileEntitySolderingStation"); GameRegistry.registerTileEntity(TileEntityMEDropper.class, "tileEntityMEDropper"); GameRegistry.registerTileEntity(TileEntityMEBattery.class, "tileEntityMEBattery"); GameRegistry.registerTileEntity(TileEntityHardMEDrive.class, "tileEntityHardMEDrive"); GameRegistry.registerTileEntity(TileEntityBusFluidImport.class, "tileEntityBusFluidImport"); GameRegistry.registerTileEntity(TileEntityBusFluidExport.class, "tileEntityBusFluidExport"); GameRegistry.registerTileEntity(TileEntityBusFluidStorage.class, "tileEntityBusFluidStorage"); GameRegistry.registerTileEntity(TileEntityTerminalFluid.class, "tileEntityTerminalFluid"); GameRegistry.registerTileEntity(TileEntityTransitionPlaneFluid.class, "tileEntityTransitionPlaneFluid"); GameRegistry.registerTileEntity(TileEntityCertusTank.class, "tileEntityCertusTank"); GameRegistry.registerTileEntity(TileEntityWalrus.class, "tileEntityWalrus"); GameRegistry.registerTileEntity(TileEntityLevelEmitterFluid.class, "tileEntityLevelEmitterFluid"); GameRegistry.registerTileEntity(TileEntityVoidFluid.class, "tileEntityVoidFluid"); GameRegistry.registerTileEntity(TileEntityInterfaceFluid.class, "tileEntityInterfaceFluid"); GameRegistry.registerTileEntity(TileEntityMonitorStorageFluid.class, "tileEntityMonitorStorageFluid"); try { Class.forName("appeng.api.me.util.ITileCraftingProvider"); GameRegistry.registerTileEntity(TileEntityFluidCrafter.class, "tileEntityFluidCrafter"); } catch (ClassNotFoundException e) { // AE13 } }
Example 12
Source File: CommonProxy.java From Et-Futurum with The Unlicense | 4 votes |
public void registerEntities() { if (EtFuturum.enableBanners) GameRegistry.registerTileEntity(TileEntityBanner.class, Utils.getUnlocalisedName("banner")); if (EtFuturum.enableArmourStand) ModEntityList.registerEntity(EntityArmourStand.class, "wooden_armorstand", 0, EtFuturum.instance, 64, 1, true); if (EtFuturum.enableEndermite) ModEntityList.registerEntity(EntityEndermite.class, "endermite", 1, EtFuturum.instance, 64, 1, true, 1447446, 7237230); if (EtFuturum.enableChorusFruit) GameRegistry.registerTileEntity(TileEntityEndRod.class, Utils.getUnlocalisedName("end_rod")); if (EtFuturum.enableTippedArrows) ModEntityList.registerEntity(EntityTippedArrow.class, "tipped_arrow", 2, EtFuturum.instance, 64, 20, true); if (EtFuturum.enableBrewingStands) GameRegistry.registerTileEntity(TileEntityNewBrewingStand.class, Utils.getUnlocalisedName("brewing_stand")); if (EtFuturum.enableColourfulBeacons) GameRegistry.registerTileEntity(TileEntityNewBeacon.class, Utils.getUnlocalisedName("beacon")); if (EtFuturum.enableRabbit) { ModEntityList.registerEntity(EntityRabbit.class, "rabbit", 3, EtFuturum.instance, 80, 3, true, 10051392, 7555121); List<BiomeGenBase> biomes = new LinkedList<BiomeGenBase>(); label: for (BiomeGenBase biome : BiomeGenBase.getBiomeGenArray()) if (biome != null) // Check if pigs can spawn on this biome for (Object obj : biome.getSpawnableList(EnumCreatureType.creature)) if (obj instanceof SpawnListEntry) { SpawnListEntry entry = (SpawnListEntry) obj; if (entry.entityClass == EntityPig.class) { biomes.add(biome); continue label; } } EntityRegistry.addSpawn(EntityRabbit.class, 10, 3, 3, EnumCreatureType.creature, biomes.toArray(new BiomeGenBase[biomes.size()])); } if (EtFuturum.enableLingeringPotions) { ModEntityList.registerEntity(EntityLingeringPotion.class, "lingering_potion", 4, EtFuturum.instance, 64, 10, true); ModEntityList.registerEntity(EntityLingeringEffect.class, "lingering_effect", 5, EtFuturum.instance, 64, 1, true); } if (EtFuturum.enableVillagerZombies) ModEntityList.registerEntity(EntityZombieVillager.class, "villager_zombie", 6, EtFuturum.instance, 80, 3, true, 44975, 7969893); if (EtFuturum.enableDragonRespawn) { ModEntityList.registerEntity(EntityPlacedEndCrystal.class, "end_crystal", 7, EtFuturum.instance, 256, Integer.MAX_VALUE, false); ModEntityList.registerEntity(EntityRespawnedDragon.class, "ender_dragon", 8, EtFuturum.instance, 160, 3, true); } if (EtFuturum.enableShearableGolems) ModEntityList.registerEntity(EntityNewSnowGolem.class, "snow_golem", 9, EtFuturum.instance, 80, 3, true); }
Example 13
Source File: QCraftProxyCommon.java From qcraft-mod with Apache License 2.0 | 4 votes |
private void registerTileEntities() { // Tile Entities GameRegistry.registerTileEntity( TileEntityQBlock.class, "qblock" ); GameRegistry.registerTileEntity( TileEntityQuantumComputer.class, "qcomputer" ); }
Example 14
Source File: ItemRegistry.java From bartworks with MIT License | 4 votes |
public static void run() { if (newStuff) { GameRegistry.registerBlock(ItemRegistry.bw_fake_glasses, "BW_FakeGlasBlock"); GameRegistry.registerBlock(ItemRegistry.BW_BLOCKS[2], BW_ItemBlocks.class, "BW_Machinery_Casings"); GameRegistry.registerItem(ItemRegistry.LEATHER_ROTOR, "BW_LeatherRotor"); GameRegistry.registerItem(ItemRegistry.WOOL_ROTOR, "BW_WoolRotor"); GameRegistry.registerItem(ItemRegistry.PAPER_ROTOR, "BW_PaperRotor"); GameRegistry.registerItem(ItemRegistry.COMBINED_ROTOR, "BW_CombinedRotor"); GameRegistry.registerItem(ItemRegistry.CRAFTING_PARTS, "craftingParts"); GameRegistry.registerTileEntity(BW_RotorBlock.class, "BWRotorBlockTE"); GameRegistry.registerBlock(ItemRegistry.ROTORBLOCK, BW_ItemBlocks.class, "BWRotorBlock"); GameRegistry.registerTileEntity(BW_TileEntity_HeatedWaterPump.class, "BWHeatedWaterPumpTE"); GameRegistry.registerBlock(ItemRegistry.PUMPBLOCK, BW_ItemBlocks.class, "BWHeatedWaterPumpBlock"); GameRegistry.registerItem(ItemRegistry.PUMPPARTS, "BWPumpParts"); GameRegistry.registerItem(ItemRegistry.WINDMETER, "BW_SimpleWindMeter"); GameRegistry.registerTileEntity(BW_TileEntity_ExperimentalFloodGate.class, "BWExpReversePump"); GameRegistry.registerBlock(ItemRegistry.EXPPUMP, BW_ItemBlocks.class, "BWExpReversePumpBlock"); } //GT2 stuff GameRegistry.registerBlock(ItemRegistry.BW_BLOCKS[0], BW_ItemBlocks.class, "BW_ItemBlocks"); GameRegistry.registerBlock(ItemRegistry.BW_BLOCKS[1], BW_ItemBlocks.class, "GT_LESU_CASING"); if (ConfigHandler.teslastaff) GameRegistry.registerItem(ItemRegistry.TESLASTAFF, ItemRegistry.TESLASTAFF.getUnlocalizedName()); GameRegistry.registerItem(ItemRegistry.ROCKCUTTER_LV, ItemRegistry.ROCKCUTTER_LV.getUnlocalizedName()); GameRegistry.registerItem(ItemRegistry.ROCKCUTTER_MV, ItemRegistry.ROCKCUTTER_MV.getUnlocalizedName()); GameRegistry.registerItem(ItemRegistry.ROCKCUTTER_HV, ItemRegistry.ROCKCUTTER_HV.getUnlocalizedName()); GameRegistry.registerItem(ItemRegistry.TAB, "tabIconGT2"); if (newStuff) { if (ConfigHandler.creativeScannerID != 0) new CreativeScanner(ConfigHandler.creativeScannerID,"Creative Debug Scanner","Creative Debug Scanner",20); ItemRegistry.eic = new GT_TileEntity_ElectricImplosionCompressor(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 6, "ElectricImplosionCompressor", "Electric Implosion Compressor").getStackForm(1L); ItemRegistry.thtr = new GT_TileEntity_THTR(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 5, "THTR", "Thorium High Temperature Reactor").getStackForm(1L); GT_TileEntity_THTR.THTRMaterials.registeraTHR_Materials(); GT_OreDictUnificator.add(OrePrefixes.block, Materials.BorosilicateGlass, new ItemStack(ItemRegistry.bw_glasses[0], 1, 0)); GT_OreDictUnificator.registerOre(OrePrefixes.block, Materials.NickelZincFerrite, new ItemStack(ItemRegistry.BW_BLOCKS[2])); for (int i = 0; i < GT_Values.VN.length; i++) { ItemRegistry.diode2A[i] = new GT_MetaTileEntity_Diode(ConfigHandler.IDOffset + GT_Values.VN.length + 1 + i, "diode" + "2A" + GT_Values.VN[i], StatCollector.translateToLocal("tile.diode.name") + " 2A " + GT_Values.VN[i], i).getStackForm(1L); ItemRegistry.diode4A[i] = new GT_MetaTileEntity_Diode(ConfigHandler.IDOffset + GT_Values.VN.length * 2 + 1 + i, "diode" + "4A" + GT_Values.VN[i], StatCollector.translateToLocal("tile.diode.name") + " 4A " + GT_Values.VN[i], i).getStackForm(1L); ItemRegistry.diode8A[i] = new GT_MetaTileEntity_Diode(ConfigHandler.IDOffset + GT_Values.VN.length * 3 + 1 + i, "diode" + "8A" + GT_Values.VN[i], StatCollector.translateToLocal("tile.diode.name") + " 8A " + GT_Values.VN[i], i).getStackForm(1L); ItemRegistry.diode12A[i] = new GT_MetaTileEntity_Diode(ConfigHandler.IDOffset + GT_Values.VN.length * 4 + 1 + i, "diode" + "12A" + GT_Values.VN[i], StatCollector.translateToLocal("tile.diode.name") + " 12A " + GT_Values.VN[i], i).getStackForm(1L); ItemRegistry.diode16A[i] = new GT_MetaTileEntity_Diode(ConfigHandler.IDOffset + GT_Values.VN.length * 5 + 1 + i, "diode" + "16A" + GT_Values.VN[i], StatCollector.translateToLocal("tile.diode.name") + " 16A " + GT_Values.VN[i], i).getStackForm(1L); ItemRegistry.energyDistributor[i] = new GT_MetaTileEntity_EnergyDistributor(ConfigHandler.IDOffset + 1 + i, "energydistributor" + GT_Values.VN[i], StatCollector.translateToLocal("tile.energydistributor.name") + " " + GT_Values.VN[i], i).getStackForm(1L); } for (int i = 0; i < 3; i++) { ItemRegistry.acidGens[i] = new GT_MetaTileEntity_AcidGenerator(ConfigHandler.IDOffset + GT_Values.VN.length * 8 - 2 + i, "acidgenerator" + GT_Values.VN[i + 2], StatCollector.translateToLocal("tile.acidgenerator.name") + " " + GT_Values.VN[i + 2], i + 2).getStackForm(1); } ItemRegistry.dehp = new GT_TileEntity_DEHP(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 1, 1, "DEHP", "Deep Earth Heating Pump").getStackForm(1L); ItemRegistry.megaMachines[0] = new GT_TileEntity_MegaBlastFurnace(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 2, "MegaBlastFurnace", StatCollector.translateToLocal("tile.bw.mbf.name")).getStackForm(1L); ItemRegistry.megaMachines[1] = new GT_TileEntity_MegaVacuumFreezer(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 3, "MegaVacuumFreezer", StatCollector.translateToLocal("tile.bw.mvf.name")).getStackForm(1L); ItemRegistry.cal = new GT_TileEntity_CircuitAssemblyLine(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 7, "CircuitAssemblyLine", "Circuit Assembly Line").getStackForm(1L); ItemRegistry.compressedHatch = new GT_MetaTileEntity_CompressedFluidHatch(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 8, "CompressedFluidHatch", "Liquid Air Fluid Hatch").getStackForm(1L); ItemRegistry.giantOutputHatch = new GT_MetaTileEntity_GiantOutputHatch(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 9, "GiantOutputHatch", "Giant Output Hatch").getStackForm(1L); ItemRegistry.megaMachines[2] = new GT_TileEntity_MegaDistillTower(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 10, "MegaDistillationTower", "Mega Distillation Tower").getStackForm(1L); if (LoaderReference.galacticgreg && WerkstoffLoader.gtnhGT) { ItemRegistry.voidminer[2] = new GT_TileEntity_VoidMiners.VMUV(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 11, "VoidMiner3", "Void Miner III").getStackForm(1L); ItemRegistry.voidminer[1] = new GT_TileEntity_VoidMiners.VMZPM(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 12, "VoidMiner2", "Void Miner II").getStackForm(1L); ItemRegistry.voidminer[0] = new GT_TileEntity_VoidMiners.VMLUV(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 13, "VoidMiner1", "Void Miner I").getStackForm(1L); } if (LoaderReference.tectech) { TecTechPipeEnergyLowPower = new TT_MetaTileEntity_Pipe_Energy_LowPower(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 14, "pipe.lowpowerlaser", "Low Power Laser Pipe").getStackForm(1L); int startID = ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 15; for (int amps = 32; amps <= 128; amps += 32) { for (int tier = 4; tier < 8; tier++) { TecTechLaserAdditions[0][amps / 32 - 1][tier - 4] = new TT_MetaTileEntity_LowPowerLaserBox(startID++, GT_Values.VN[tier] + "_LPLaser_Converter_" + amps, GT_Values.VN[tier] + " " + amps + "A/t" + " Low Power Laser Converter", tier, amps).getStackForm(1L); } } for (int amps = 32; amps <= 128; amps += 32) { for (int tier = 4; tier < 8; tier++) { TecTechLaserAdditions[1][amps / 32 - 1][tier - 4] = new TT_MetaTileEntity_LowPowerLaserHatch(startID++, GT_Values.VN[tier] + "_LPLaser_Hatch_" + amps, GT_Values.VN[tier] + " " + amps + "A/t" + " Low Power Laser Target Hatch", tier, amps).getStackForm(1L); } } for (int amps = 32; amps <= 128; amps += 32) { for (int tier = 4; tier < 8; tier++) { TecTechLaserAdditions[2][amps / 32 - 1][tier - 4] = new TT_MetaTileEntity_LowPowerLaserDynamo(startID++, GT_Values.VN[tier] + "_LPLaser_Dynamo_" + amps, GT_Values.VN[tier] + " " + amps + "A/t" + " Low Power Laser Source Hatch", tier, amps).getStackForm(1L); } } } } }
Example 15
Source File: BaseTileRegistry.java From Electro-Magic-Tools with GNU General Public License v3.0 | 4 votes |
public static void registerBaseTiles() { GameRegistry.registerTileEntity(TileEntityPortableNode.class, "tileentityportablenode"); }
Example 16
Source File: ModTileEntities.java From AdvancedMod with GNU General Public License v3.0 | 4 votes |
public static void init(){ GameRegistry.registerTileEntity(TileEntityCamoMine.class, Names.TileEntities.CAMO_MINE); GameRegistry.registerTileEntity(TileEntityModularStorage.class, Names.TileEntities.MODULAR_STORAGE); GameRegistry.registerTileEntity(TileEntityTreeFarm.class, Names.TileEntities.TREE_FARM); }
Example 17
Source File: CommonProxy.java From Chisel-2 with GNU General Public License v2.0 | 4 votes |
public void registerTileEntities() { GameRegistry.registerTileEntity(TileEntityAutoChisel.class, "autoChisel"); GameRegistry.registerTileEntity(TileEntityPresent.class, "tile.chisel.present"); GameRegistry.registerTileEntity(TileEntityCarvableBeacon.class, "tile.chisel.beacon"); }
Example 18
Source File: TranslocatorProxy.java From Translocators with MIT License | 4 votes |
public void init() { blockTranslocator = new BlockTranslocator(); blockTranslocator.setBlockName("translocator").setCreativeTab(CreativeTabs.tabRedstone); blockCraftingGrid = new BlockCraftingGrid(); blockCraftingGrid.setBlockName("craftingGrid"); blockCraftingGrid.setBlockTextureName("planks_oak"); itemDiamondNugget = new Item() .setUnlocalizedName("translocator:diamondNugget").setTextureName("translocator:diamondNugget") .setCreativeTab(CreativeTabs.tabMaterials); GameRegistry.registerItem(itemDiamondNugget, "diamondNugget"); OreDictionary.registerOre("nuggetDiamond", itemDiamondNugget); GameRegistry.registerBlock(blockTranslocator, ItemTranslocator.class, "translocator"); GameRegistry.registerBlock(blockCraftingGrid, "craftingGrid"); MinecraftForge.EVENT_BUS.register(blockTranslocator); MinecraftForge.EVENT_BUS.register(blockCraftingGrid); GameRegistry.registerTileEntity(TileItemTranslocator.class, "itemTranslocator"); GameRegistry.registerTileEntity(TileLiquidTranslocator.class, "liquidTranslocator"); GameRegistry.registerTileEntity(TileCraftingGrid.class, "craftingGrid"); PacketCustom.assignHandler(TranslocatorSPH.channel, new TranslocatorSPH()); GameRegistry.addRecipe(new ItemStack(blockTranslocator, 2, 0), "rer", "ipi", "rgr", 'r', Items.redstone, 'e', Items.ender_pearl, 'i', Items.iron_ingot, 'g', Items.gold_ingot, 'p', Blocks.piston); GameRegistry.addRecipe(new ItemStack(blockTranslocator, 2, 1), "rer", "ipi", "rlr", 'r', Items.redstone, 'e', Items.ender_pearl, 'i', Items.iron_ingot, 'l', new ItemStack(Items.dye, 1, 4), 'p', Blocks.piston); API.hideItem(new ItemStack(blockCraftingGrid)); GameRegistry.addShapelessRecipe(new ItemStack(Items.diamond), itemDiamondNugget, itemDiamondNugget, itemDiamondNugget, itemDiamondNugget, itemDiamondNugget, itemDiamondNugget, itemDiamondNugget, itemDiamondNugget, itemDiamondNugget); GameRegistry.addShapelessRecipe(new ItemStack(itemDiamondNugget, 9), Items.diamond); }
Example 19
Source File: RegisteredBlocks.java From Gadomancy with GNU Lesser General Public License v3.0 | 4 votes |
private static void registerTile(Class<? extends TileEntity> tile, String name) { GameRegistry.registerTileEntity(tile, name); }
Example 20
Source File: ModBlocks.java From GardenCollection with MIT License | 4 votes |
public void init () { heavyChain = new BlockHeavyChain(makeName("heavyChain")); lightChain = new BlockLightChain(makeName("lightChain")); largeMountingPlate = new BlockLargeMountingPlate(makeName("largeMountingPlate")); latticeMetal = new BlockLatticeMetal(makeName("latticeMetal")); latticeWood = new BlockLatticeWood(makeName("latticeWood")); rootCover = new BlockRootCover(makeName("rootCover")); lantern = new BlockLantern(makeName("lantern")); metalBlock = new BlockCompressed(MapColor.blackColor).setBlockName(makeName("metalBlock")).setCreativeTab(ModCreativeTabs.tabGardenCore).setBlockTextureName(GardenStuff.MOD_ID + ":wrought_iron_block").setHardness(5.0F).setResistance(10.0F).setStepSound(Block.soundTypeMetal); stoneBlock = new BlockStoneType(makeName("stoneBlock")); fence = new BlockFence(makeName("fence")); bloomeryFurnace = new BlockBloomeryFurnace(makeName("bloomeryFurnace")); mossBrick = new BlockMossBrick(makeName("mossBrick")); candelabra = new BlockCandelabra(makeName("candelabra")); hoop = new BlockHoop(makeName("hoop")); GameRegistry.registerBlock(heavyChain, ItemHeavyChain.class, "heavy_chain"); GameRegistry.registerBlock(lightChain, ItemLightChain.class, "light_chain"); GameRegistry.registerBlock(latticeMetal, ItemLatticeMetal.class, "lattice"); GameRegistry.registerBlock(latticeWood, ItemLatticeWood.class, "lattice_wood"); GameRegistry.registerBlock(rootCover, "root_cover"); GameRegistry.registerBlock(lantern, ItemLantern.class, "lantern"); GameRegistry.registerBlock(metalBlock, "metal_block"); GameRegistry.registerBlock(stoneBlock, "stone_block"); GameRegistry.registerBlock(fence, ItemFence.class, "fence"); GameRegistry.registerBlock(bloomeryFurnace, "bloomery_furnace"); GameRegistry.registerBlock(mossBrick, ItemMossBrick.class, "moss_brick"); GameRegistry.registerBlock(candelabra, ItemCandelabra.class, "candelabra"); GameRegistry.registerBlock(hoop, "hoop"); //GameRegistry.registerBlock(largeMountingPlate, "large_mounting_plate"); GameRegistry.registerTileEntity(TileEntityLatticeMetal.class, ModBlocks.getQualifiedName(latticeMetal)); GameRegistry.registerTileEntity(TileEntityLatticeWood.class, ModBlocks.getQualifiedName(latticeWood)); GameRegistry.registerTileEntity(TileEntityLantern.class, ModBlocks.getQualifiedName(lantern)); GameRegistry.registerTileEntity(TileEntityBloomeryFurnace.class, ModBlocks.getQualifiedName(bloomeryFurnace)); GameRegistry.registerTileEntity(TileEntityCandelabra.class, ModBlocks.getQualifiedName(candelabra)); OreDictionary.registerOre("blockWroughtIron", metalBlock); OreDictionary.registerOre("blockCharcoal", stoneBlock); GameRegistry.registerFuelHandler(stoneBlock); }