当前位置: 首页>>代码示例>>C#>>正文


C# Player.CatchNextBlockchange方法代码示例

本文整理汇总了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);
 }
开发者ID:hirsty,项目名称:MCForge-Vanilla-1,代码行数:6,代码来源:CmdReplace.cs

示例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);
 }
开发者ID:hirsty,项目名称:MCForge-Vanilla-1,代码行数:21,代码来源:CmdMeasure.cs

示例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);
        }
开发者ID:hirsty,项目名称:MCForge-Vanilla-1,代码行数:29,代码来源:CmdReplace.cs

示例4: Use

 public void Use(Player p, string[] args)
 {
     p.SendMessage("Please place/destroy a block.");
     p.CatchNextBlockchange(new Player.BlockChangeDelegate(BlockChange), null);
 }
开发者ID:hirsty,项目名称:MCForge-Vanilla-1,代码行数:5,代码来源:CmdTest.cs


注:本文中的MCForge.Player.CatchNextBlockchange方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。