1 package chemicraft.util;
3 import net.minecraft.src.Block;
4 import net.minecraft.src.CommandBase;
5 import net.minecraft.src.EntityPlayer;
6 import net.minecraft.src.ICommandSender;
7 import net.minecraft.src.World;
8 import setBlockSupport.SetBlockSupport;
10 public class CommandSetTile extends CommandBase {
13 public String getCommandName() {
18 public void processCommand(ICommandSender var1, String[] var2) {
20 EntityPlayer player = (EntityPlayer)var1;
21 World wolrd = player.worldObj;
24 if(Integer.parseInt(var2[0]) < 256){
26 SetBlockSupport.square(wolrd, (int)player.posX, (int)player.posY, (int)player.posZ, Integer.parseInt(var2[0]), Integer.parseInt(var2[1]), 12, 12);
28 SetBlockSupport.square(wolrd, (int)player.posX, (int)player.posY, (int)player.posZ, Integer.parseInt(var2[0]), 0, 12, 12);
31 var1.sendChatToPlayer("Over 256 than the Block ID.");
33 }catch(NumberFormatException e){
34 var1.sendChatToPlayer("A given Character is not a number.");
37 var1.sendChatToPlayer("Please specify the BlockID.(Optional have Metadata)");
39 }catch(ClassCastException e){