Пример #1
0
        public override void CallHandler(IPlayer player, int groupId, CmdArgs args)
        {
            var tree = new TreeAttribute();

            if (player.CurrentBlockSelection != null)
            {
                var blockentity = _api.World?.BlockAccessor?.GetBlockEntity(player.CurrentBlockSelection.Position);
                blockentity?.ToTreeAttributes(tree);
                _api.ShowChatMessage(tree.ToJsonToken());
            }
        }
Пример #2
0
 /// <summary> Print all allomantic properties of the entity </summary>
 public void Debug()
 {
     Console.WriteLine(allomancyTree.ToJsonToken());
 }