Converted Mech content half way back to the old system

This commit is contained in:
Robert S 2014-10-04 20:57:00 -04:00
parent 429c5c59b4
commit 2efd638bd1

View file

@ -34,25 +34,40 @@ object MechContent extends ContentHolder
manager.setPrefix(Reference.prefix) manager.setPrefix(Reference.prefix)
//Content //Content
var itemGear: Item = manager.newItem(classOf[ItemGear]) var itemGear: Item = null
var itemGearShaft: Item = manager.newItem(classOf[ItemGearShaft]) var itemGearShaft: Item = null
var itemPipe: Item = manager.newItem(classOf[ItemPipe]) var itemPipe: Item = null
var blockWindTurbine: Block = manager.newBlock(classOf[TileWindTurbine]) var blockWindTurbine: Block = null
var blockWaterTurbine: Block = manager.newBlock(classOf[TileWaterTurbine]) var blockWaterTurbine: Block = null
var blockElectricTurbine: Block = manager.newBlock(classOf[TileElectricTurbine]) var blockElectricTurbine: Block = null
var blockDetector: Block = manager.newBlock(classOf[TileDetector]) var blockDetector: Block = null
var blockPump: Block = manager.newBlock(classOf[TilePump]) var blockPump: Block = null
var blockGrinderWheel: Block = manager.newBlock(classOf[TileGrindingWheel]) var blockGrinderWheel: Block = null
var blockMixer: Block = manager.newBlock(classOf[TileMixer]) var blockMixer: Block = null
var blockMechanicalPiston: Block = manager.newBlock(classOf[TileMechanicalPiston]) var blockMechanicalPiston: Block = null
var blockTileBreaker: Block = manager.newBlock(classOf[TileBreaker]) var blockTileBreaker: Block = null
var blockTilePlacer: Block = manager.newBlock(classOf[TilePlacer]) var blockTilePlacer: Block = null
override def preInit() override def preInit()
{ {
super.preInit() super.preInit()
itemGear = manager.newItem(classOf[ItemGear])
itemGearShaft = manager.newItem(classOf[ItemGearShaft])
itemPipe = manager.newItem(classOf[ItemPipe])
blockWindTurbine = manager.newBlock(classOf[TileWindTurbine])
blockWaterTurbine= manager.newBlock(classOf[TileWaterTurbine])
blockElectricTurbine= manager.newBlock(classOf[TileElectricTurbine])
blockDetector = manager.newBlock(classOf[TileDetector])
blockPump = manager.newBlock(classOf[TilePump])
blockGrinderWheel= manager.newBlock(classOf[TileGrindingWheel])
blockMixer = manager.newBlock(classOf[TileMixer])
blockMechanicalPiston = manager.newBlock(classOf[TileMechanicalPiston])
blockTileBreaker = manager.newBlock(classOf[TileBreaker])
blockTilePlacer = manager.newBlock(classOf[TilePlacer])
TileCreativeBuilder.register(new SchematicPlate("schematic.waterTurbine.name", MechContent.blockWaterTurbine)) TileCreativeBuilder.register(new SchematicPlate("schematic.waterTurbine.name", MechContent.blockWaterTurbine))
TileCreativeBuilder.register(new SchematicPlate("schematic.windTurbine.name", MechContent.blockWindTurbine)) TileCreativeBuilder.register(new SchematicPlate("schematic.windTurbine.name", MechContent.blockWindTurbine))
TileCreativeBuilder.register(new SchematicPlate("schematic.electricTurbine.name", MechContent.blockElectricTurbine)) TileCreativeBuilder.register(new SchematicPlate("schematic.electricTurbine.name", MechContent.blockElectricTurbine))