Skip to content

Class TranslatableContent

Namespace: Void.Minecraft.Components.Text.Properties.Content
Assembly: Void.Minecraft.dll

public record TranslatableContent : IContent, IEquatable<TranslatableContent>

Inheritance

objectTranslatableContent

Implements

IContent, IEquatable<TranslatableContent>

Inherited Members

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

Constructors

TranslatableContent(string, string?, IEnumerable<Component>?)

public TranslatableContent(string Translate, string? Fallback = null, IEnumerable<Component>? With = null)

Parameters

Translate string

Fallback string?

With IEnumerable<Component>?

Properties

Fallback

public string? Fallback { get; init; }

Property Value

string?

Translate

public string Translate { get; init; }

Property Value

string

Type

public string Type { get; }

Property Value

string

With

public IEnumerable<Component>? With { get; init; }

Property Value

IEnumerable<Component>?