OSDN Git Service

ChemiCraft.java修正
[chemicraft/chemicraft.git] / common / pcc / chemicraft / debug / CommandGenDebugRoom.java
1 package pcc.chemicraft.debug;
2
3 import net.minecraft.block.Block;
4 import net.minecraft.command.CommandBase;
5 import net.minecraft.command.ICommandSender;
6 import net.minecraft.entity.player.EntityPlayer;
7 import net.minecraft.world.World;
8
9 public class CommandGenDebugRoom extends CommandBase {
10
11         @Override
12         public String getCommandName() {
13                 return "debugRoom";
14         }
15
16         @Override
17         public void processCommand(ICommandSender var1, String[] var2) {
18                 try{
19                         EntityPlayer player = (EntityPlayer)var1;
20                         World wolrd = player.worldObj;
21
22                         SetBlockSupport.box(wolrd, (int)player.posX, (int)player.posY, (int)player.posZ, Block.bedrock.blockID, 0, 20, 20, 6);
23                 }catch(ClassCastException e){
24
25                 }
26         }
27
28 }