NBTExplorer/Model/TagByteArrayDataNode.cs

27 lines
580 B
C#
Raw Normal View History

2012-09-02 00:08:54 +00:00
using Substrate.Nbt;
namespace NBTExplorer.Model
{
public class TagByteArrayDataNode : TagDataNode
{
public TagByteArrayDataNode (TagNodeByteArray tag)
: base(tag)
{ }
protected new TagNodeByteArray Tag
{
get { return base.Tag as TagNodeByteArray; }
}
public override bool EditNode ()
{
return EditByteHexValue(Tag);
}
public override string NodeDisplay
{
get { return NodeDisplayPrefix + Tag.Data.Length + " bytes"; }
}
}
}