Class LiteralContent
Namespace: Void.Minecraft.Components.Text.Properties.Content
Assembly: Void.Minecraft.dll
Represents a component whose literal payload is an arbitrary NBT tag.
public record LiteralContent : IContent, IEquatable<LiteralContent>Inheritance
Implements
IContent, IEquatable<LiteralContent>
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
LiteralContent(NbtTag)
Represents a component whose literal payload is an arbitrary NBT tag.
public LiteralContent(NbtTag Value)Parameters
Value NbtTag
The literal NBT value.
Properties
Type
Gets the literal content discriminator.
public string Type { get; }Property Value
Value
The literal NBT value.
public NbtTag Value { get; init; }