Initial sync
This commit is contained in:
8
Nbt/Tag/Value/NbtByte.cs
Executable file
8
Nbt/Tag/Value/NbtByte.cs
Executable file
@@ -0,0 +1,8 @@
|
||||
namespace Nbt.Tag;
|
||||
|
||||
public class NbtByte(sbyte value) : NbtValue<sbyte>(value)
|
||||
{
|
||||
public override NbtTagType Type => NbtTagType.Byte;
|
||||
|
||||
protected override NbtByte NewInstance(sbyte value) => new(value);
|
||||
}
|
||||
8
Nbt/Tag/Value/NbtDouble.cs
Executable file
8
Nbt/Tag/Value/NbtDouble.cs
Executable file
@@ -0,0 +1,8 @@
|
||||
namespace Nbt.Tag;
|
||||
|
||||
public class NbtDouble(double value) : NbtValue<double>(value)
|
||||
{
|
||||
public override NbtTagType Type => NbtTagType.Double;
|
||||
|
||||
protected override NbtDouble NewInstance(double value) => new(value);
|
||||
}
|
||||
8
Nbt/Tag/Value/NbtFloat.cs
Executable file
8
Nbt/Tag/Value/NbtFloat.cs
Executable file
@@ -0,0 +1,8 @@
|
||||
namespace Nbt.Tag;
|
||||
|
||||
public class NbtFloat(float value) : NbtValue<float>(value)
|
||||
{
|
||||
public override NbtTagType Type => NbtTagType.Float;
|
||||
|
||||
protected override NbtFloat NewInstance(float value) => new(value);
|
||||
}
|
||||
8
Nbt/Tag/Value/NbtInt.cs
Executable file
8
Nbt/Tag/Value/NbtInt.cs
Executable file
@@ -0,0 +1,8 @@
|
||||
namespace Nbt.Tag;
|
||||
|
||||
public class NbtInt(int value) : NbtValue<int>(value)
|
||||
{
|
||||
public override NbtTagType Type => NbtTagType.Int;
|
||||
|
||||
protected override NbtInt NewInstance(int value) => new(value);
|
||||
}
|
||||
8
Nbt/Tag/Value/NbtLong.cs
Executable file
8
Nbt/Tag/Value/NbtLong.cs
Executable file
@@ -0,0 +1,8 @@
|
||||
namespace Nbt.Tag;
|
||||
|
||||
public class NbtLong(long value) : NbtValue<long>(value)
|
||||
{
|
||||
public override NbtTagType Type => NbtTagType.Long;
|
||||
|
||||
protected override NbtLong NewInstance(long value) => new(value);
|
||||
}
|
||||
8
Nbt/Tag/Value/NbtShort.cs
Executable file
8
Nbt/Tag/Value/NbtShort.cs
Executable file
@@ -0,0 +1,8 @@
|
||||
namespace Nbt.Tag;
|
||||
|
||||
public class NbtShort(short value) : NbtValue<short>(value)
|
||||
{
|
||||
public override NbtTagType Type => NbtTagType.Short;
|
||||
|
||||
protected override NbtShort NewInstance(short value) => new(value);
|
||||
}
|
||||
8
Nbt/Tag/Value/NbtString.cs
Executable file
8
Nbt/Tag/Value/NbtString.cs
Executable file
@@ -0,0 +1,8 @@
|
||||
namespace Nbt.Tag;
|
||||
|
||||
public class NbtString(string value) : NbtValue<string>(value)
|
||||
{
|
||||
public override NbtTagType Type => NbtTagType.String;
|
||||
|
||||
protected override NbtString NewInstance(string value) => new(value);
|
||||
}
|
||||
Reference in New Issue
Block a user