Example #1
0
        public override bool DeleteNode()
        {
            if (CanDeleteNode && TagParent != null)
            {
                TagParent.DeleteTag(Tag);
                IsParentModified = true;
                return(Parent.Nodes.Remove(this));
            }

            return(false);
        }
Example #2
0
        public override bool CutNode()
        {
            if (CanCutNode && TagParent != null)
            {
                NbtClipboardController.CopyToClipboard(new NbtClipboardData(NodeName, Tag));

                TagParent.DeleteTag(Tag);
                IsParentModified = true;
                Parent.Nodes.Remove(this);
                return(true);
            }

            return(false);
        }