worked on crane part models

*Added: Rail model
*Added: Pully model
*Added: Ablity to use crane part block in game, though it does nothing
*Moved: Block & Item class for crane parts to crane package

Btw the ItemCraneParts is needed. I'm going to use it to have the item
render in hand diffrent then in the inventory which can only be done
with an item class.
This commit is contained in:
Rseifert 2013-01-30 01:20:38 -05:00
parent e3d824a091
commit eb6a3a1d96
6 changed files with 28 additions and 22 deletions

Binary file not shown.

Binary file not shown.

View file

@ -20,6 +20,8 @@ import assemblyline.common.machine.BlockRejector;
import assemblyline.common.machine.armbot.BlockArmbot;
import assemblyline.common.machine.belt.BlockConveyorBelt;
import assemblyline.common.machine.crane.BlockCraneController;
import assemblyline.common.machine.crane.BlockCraneParts;
import assemblyline.common.machine.crane.ItemCraneParts;
import assemblyline.common.machine.detector.BlockDetector;
import assemblyline.common.machine.encoder.BlockEncoder;
import assemblyline.common.machine.encoder.ItemDisk;
@ -79,10 +81,11 @@ public class AssemblyLine
public static Block blockRejector;
public static Block blockArmbot;
public static Block blockCraneController;
public static Block blockCraneParts;
public static BlockMulti blockMulti;
public static final int ITEM_ID_PREFIX = 3030;
public static final int ITEM_ID_PREFIX = 13030;
public static Item itemImprint;
public static Item itemDisk;
@ -103,7 +106,9 @@ public class AssemblyLine
blockArmbot = new BlockArmbot(CONFIGURATION.getBlock("Armbot", BLOCK_ID_PREFIX + 8).getInt());
blockMulti = new BlockMulti(CONFIGURATION.getBlock("Multiblock", BLOCK_ID_PREFIX + 9).getInt());
blockCraneController = new BlockCraneController(CONFIGURATION.getBlock("CraneController", BLOCK_ID_PREFIX + 10).getInt());
blockCraneController = new BlockCraneParts(CONFIGURATION.getBlock("CraneParts", BLOCK_ID_PREFIX + 11).getInt());
itemImprint = new ItemImprinter(CONFIGURATION.getBlock("Imprint", ITEM_ID_PREFIX).getInt());
itemDisk = new ItemDisk(CONFIGURATION.getBlock("Disk", ITEM_ID_PREFIX + 1).getInt());
CONFIGURATION.save();
@ -118,6 +123,7 @@ public class AssemblyLine
GameRegistry.registerBlock(blockRejector, "Rejector");
GameRegistry.registerBlock(blockArmbot, "Armbot");
GameRegistry.registerBlock(blockCraneController, "Crane Controller");
GameRegistry.registerBlock(blockCraneParts,ItemCraneParts.class, "Crane Parts");
TabAssemblyLine.itemStack = new ItemStack(AssemblyLine.blockConveyorBelt);
UpdateNotifier.INSTANCE.checkUpdate(NAME, VERSION, "http://calclavia.com/downloads/al/recommendedversion.txt");

View file

@ -1,4 +1,4 @@
package assemblyline.common.machine.quarry;
package assemblyline.common.machine.crane;
import assemblyline.common.TabAssemblyLine;
import universalelectricity.prefab.BlockMachine;
@ -8,12 +8,12 @@ import net.minecraft.creativetab.CreativeTabs;
public class BlockCraneParts extends BlockMachine
{
public static final int RAIL_META = 0;
public BlockCraneParts(int id)
{
super("CraneParts", id, Material.iron, TabAssemblyLine.INSTANCE);
}
public static final int RAIL_META = 0;
public BlockCraneParts(int id)
{
super("CraneParts", id, Material.iron, TabAssemblyLine.INSTANCE);
}
}

View file

@ -0,0 +1,14 @@
package assemblyline.common.machine.crane;
import net.minecraft.item.ItemBlock;
public class ItemCraneParts extends ItemBlock
{
public ItemCraneParts(int par1)
{
super(par1);
this.setHasSubtypes(true);
}
}

View file

@ -1,14 +0,0 @@
package assemblyline.common.machine.quarry;
import net.minecraft.item.ItemBlock;
public class ItemCraneParts extends ItemBlock
{
public ItemCraneParts(int par1)
{
super(par1);
this.setHasSubtypes(true);
}
}