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()); } }
/// <summary> Print all allomantic properties of the entity </summary> public void Debug() { Console.WriteLine(allomancyTree.ToJsonToken()); }