本文整理汇总了C#中MCForge.Entity.Player.SendReplaceNecessaryBlocksWhere方法的典型用法代码示例。如果您正苦于以下问题:C# Player.SendReplaceNecessaryBlocksWhere方法的具体用法?C# Player.SendReplaceNecessaryBlocksWhere怎么用?C# Player.SendReplaceNecessaryBlocksWhere使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MCForge.Entity.Player
的用法示例。
在下文中一共展示了Player.SendReplaceNecessaryBlocksWhere方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnPlayerBigMove_Normal
void OnPlayerBigMove_Normal(Player sender, API.Events.MoveEventArgs args) {
string IsFlying = (string)sender.ExtraData["IsFlying"];
if (IsFlying != null) {
Vector3S lastPos = (Vector3S)sender.ExtraData["FlyLastPos"];
Vector3S belowBlock = sender.belowBlock;
if (IsFlying == "+" && glassesFlatAndMiddle != null) {
sender.SendReplaceNecessaryBlocksWhere(glassesFlatAndMiddle, lastPos, belowBlock, 0, 20);
sender.ExtraData["FlyLastPos"] = belowBlock;
}
else if (IsFlying == "water" && fluidCube != null) {
Vector3S tmp = belowBlock;
tmp.y++;
sender.SendReplaceNecessaryBlocksWhere(fluidCube, lastPos, tmp, 0, 9);
sender.ExtraData["FlyLastPos"] = tmp;
}
else {
sender.SendReplaceNecessaryBlocksWhere(glassesFlat, lastPos, belowBlock, 0, 20);
sender.ExtraData["FlyLastPos"] = belowBlock;
}
}
}