untabified.
This commit is contained in:
parent
52272da33b
commit
49b24fa2cd
3 changed files with 106 additions and 105 deletions
|
@ -27,12 +27,6 @@ public class ScriptCraftBukkit implements IScriptCraft
|
||||||
sign.update(true);
|
sign.update(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void _putBlock(World world,int x, int y, int z, int blockId, int meta){
|
|
||||||
Block block = world.getBlockAt(x, y, z);
|
|
||||||
block.setTypeId(blockId);
|
|
||||||
block.setData((byte)meta);
|
|
||||||
|
|
||||||
}
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see net.walterhiggins.scriptcraft.IScriptCraft#putBlock(int, int, int, int, int)
|
* @see net.walterhiggins.scriptcraft.IScriptCraft#putBlock(int, int, int, int, int)
|
||||||
*/
|
*/
|
||||||
|
@ -52,12 +46,6 @@ public class ScriptCraftBukkit implements IScriptCraft
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
private final Block getBlockObjectAt(int x,int y, int z){
|
|
||||||
World world = getInvokerWorld();
|
|
||||||
if (world != null)
|
|
||||||
return world.getBlockAt(x, y, z);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see net.walterhiggins.scriptcraft.IScriptCraft#getBlock(int, int, int)
|
* @see net.walterhiggins.scriptcraft.IScriptCraft#getBlock(int, int, int)
|
||||||
*/
|
*/
|
||||||
|
@ -82,6 +70,19 @@ public class ScriptCraftBukkit implements IScriptCraft
|
||||||
}
|
}
|
||||||
this.plugin.getLogger().info(message);
|
this.plugin.getLogger().info(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void _putBlock(World world,int x, int y, int z, int blockId, int meta){
|
||||||
|
Block block = world.getBlockAt(x, y, z);
|
||||||
|
block.setTypeId(blockId);
|
||||||
|
block.setData((byte)meta);
|
||||||
|
|
||||||
|
}
|
||||||
|
private final Block getBlockObjectAt(int x,int y, int z){
|
||||||
|
World world = getInvokerWorld();
|
||||||
|
if (world != null)
|
||||||
|
return world.getBlockAt(x, y, z);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
protected JavaPlugin plugin = null;
|
protected JavaPlugin plugin = null;
|
||||||
public CommandSender invoker = null;
|
public CommandSender invoker = null;
|
||||||
|
|
||||||
|
|
Reference in a new issue