* @author CovertJaguar <http://www.railcraft.info>
*/
public class TileRockCrusher extends TileMultiBlockInventory implements IPowerReceptor, IHasWork, ISidedInventory {
public static void placeRockCrusher(World world, int x, int y, int z, int patternIndex, List<ItemStack> input, List<ItemStack> output) {
MultiBlockPattern pattern = TileRockCrusher.patterns.get(patternIndex);
Map<Character, Integer> blockMapping = new HashMap<Character, Integer>();
blockMapping.put('B', EnumMachineAlpha.ROCK_CRUSHER.ordinal());
blockMapping.put('D', EnumMachineAlpha.ROCK_CRUSHER.ordinal());
blockMapping.put('a', EnumMachineAlpha.ROCK_CRUSHER.ordinal());
blockMapping.put('b', EnumMachineAlpha.ROCK_CRUSHER.ordinal());
blockMapping.put('c', EnumMachineAlpha.ROCK_CRUSHER.ordinal());
blockMapping.put('d', EnumMachineAlpha.ROCK_CRUSHER.ordinal());
blockMapping.put('e', EnumMachineAlpha.ROCK_CRUSHER.ordinal());
blockMapping.put('f', EnumMachineAlpha.ROCK_CRUSHER.ordinal());
blockMapping.put('h', EnumMachineAlpha.ROCK_CRUSHER.ordinal());
TileEntity tile = pattern.placeStructure(world, x, y, z, RailcraftBlocks.getBlockMachineAlpha(), blockMapping);
if (tile instanceof TileRockCrusher) {
TileRockCrusher master = (TileRockCrusher) tile;
for (int slot = 0; slot < 9; slot++) {
if (input != null && slot < input.size())
master.inv.setInventorySlotContents(TileRockCrusher.SLOT_INPUT + slot, input.get(slot));