Skip to content

Class TagEventArgs

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

Arguments supplied with tag-related events.

public class TagEventArgs : EventArgs

Inheritance

objectEventArgsTagEventArgs

Inherited Members

EventArgs.Empty, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

TagEventArgs(TagType, Tag)

Creates a new instance of the class.

public TagEventArgs(TagType type, Tag tag)

Parameters

type TagType

A constant describing the basic NBT type of the tag.

tag Tag

The parsed instance.

Exceptions

ArgumentNullException

Thrown when tag is null.

Properties

Tag

Gets the parsed instance.

public Tag Tag { get; }

Property Value

Tag

Type

Gets a constant describing the basic NBT type of the tag.

public TagType Type { get; }

Property Value

TagType