本文整理汇总了C#中MCForge.Player.CatchNextBlockchange方法的典型用法代码示例。如果您正苦于以下问题:C# Player.CatchNextBlockchange方法的具体用法?C# Player.CatchNextBlockchange怎么用?C# Player.CatchNextBlockchange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MCForge.Player
的用法示例。
在下文中一共展示了Player.CatchNextBlockchange方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CatchBlock
public void CatchBlock(Player p, ushort x, ushort z, ushort y, byte NewType, bool placed, object DataPass)
{
CatchPos cpos = (CatchPos)DataPass;
cpos.pos = new Point3(x, z, y);
p.CatchNextBlockchange(CatchBlock2, (object)cpos);
}
示例2: Use
public void Use(Player p, string[] args)
{
CatchPos cpos = new CatchPos();
if (args.Length == 1)
{
try
{
cpos.ignore = Blocks.NameToByte(args[0]);
}
catch
{
p.SendMessage("Could not find block specified");
return;
}
p.SendMessage("Ignoring " + args[0]);
}
else
cpos.ignore = (byte)(Blocks.Types.zero); //So it doesn't ignore air.
p.SendMessage("Place two blocks to determine the edges.");
p.CatchNextBlockchange(new Player.BlockChangeDelegate(CatchBlock), (object)cpos);
}
示例3: Use
public void Use(Player p, string[] args)
{
byte type = 0;
byte type2 = 0;
if (args.Length != 2)
{
p.SendMessage("Invalid arguments!");
Help(p);
return;
}
try
{
type = Blocks.NameToByte(args[0]);
type2 = Blocks.NameToByte(args[1]);
}
catch
{
p.SendMessage("Could not find block specified");
return;
}
//Block permissions here.
CatchPos cpos = new CatchPos();
cpos.type = type;
cpos.type2 = type2;
p.SendMessage("Place two blocks to determine the edges.");
p.CatchNextBlockchange(new Player.BlockChangeDelegate(CatchBlock), (object)cpos);
}
示例4: Use
public void Use(Player p, string[] args)
{
p.SendMessage("Please place/destroy a block.");
p.CatchNextBlockchange(new Player.BlockChangeDelegate(BlockChange), null);
}