Skip to content

Class EndTag

Namespace: Void.Minecraft.Nbt
Assembly: Void.Minecraft.dll

Represents the end of .

public sealed class EndTag : Tag, IEquatable<Tag>, ICloneable

Inheritance

objectTagEndTag

Implements

IEquatable<Tag>, ICloneable

Inherited Members

Tag.Type, Tag.Parent, Tag.Name, Tag.WriteJson(Stream, JsonWriterOptions?), Tag.WriteJsonAsync(Stream, JsonWriterOptions?), Tag.ToJson(JsonWriterOptions?), Tag.ToJsonString(bool, string), Tag.Equals(Tag?), Tag.Equals(object?), Tag.GetHashCode(), Tag.Clone(), Tag.Stringify(bool), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

EndTag()

Creates a new instance of the class.

public EndTag()

Methods

PrettyPrinted(StringBuilder, int, string)

Writes this tag as a formatted string to the given buffer.

protected override void PrettyPrinted(StringBuilder buffer, int level, string indent)

Parameters

buffer StringBuilder

A instance to write to.

level int

The current indent depth to write at.

indent string

The string to use for indents.

Stringify(bool)

Gets the string representation of this NBT tag (SNBT).

public override string Stringify(bool named = true)

Parameters

named bool

Flag indicating if the name of the tag should be written.

Returns

string

This NBT tag in SNBT format.

See Also

https://minecraft.fandom.com/wiki/NBT_format#SNBT_format

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

WriteJson(Utf8JsonWriter, bool)

Uses the provided writer to write the NBT tag in JSON format.

protected override void WriteJson(Utf8JsonWriter writer, bool named = true)

Parameters

writer Utf8JsonWriter

A JSON writer instance.

named bool

Flag indicating if this object’s name should be written as a property name, or false when it is a child of , in which case it should be written as a JSON array element.