Port NBT impl from LibAC Dart

This commit is contained in:
zontreck 2024-12-16 04:25:24 -07:00
parent 0a022634c1
commit ad7b619706
55 changed files with 3226 additions and 2983 deletions

42
NBT/EndTag.cs Normal file
View file

@ -0,0 +1,42 @@
using System;
using LibAC.NBT.API;
namespace LibAC.NBT;
public class EndTag : Tag
{
public override TagType GetTagType()
{
return TagType.End;
}
public override void WriteValue(ByteLayer data)
{
}
public override void ReadValue(ByteLayer data)
{
}
public override dynamic GetValue()
{
return null;
}
public override void SetValue(dynamic val)
{
}
public override void WriteStringifiedValue(StringBuilder builder, int indent, bool isList)
{
}
public override void ReadStringifiedValue(StringReader reader)
{
}
public override void PrettyPrint(int indent, bool recurse)
{
Console.WriteLine($"{"".PadLeft(indent, '\t')}{Tag.GetCanonicalName(GetTagType())}");
}
}