Table of Contents

Struct MotdStyle

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

How one character looks. Color is a Minecraft code (0-9, a-f), 'x' for the RGB colour in Rgb, or '\0' for the list's default grey.

public readonly record struct MotdStyle : IEquatable<MotdStyle>
Implements
Inherited Members

Constructors

MotdStyle(char, MotdFormat, int)

How one character looks. Color is a Minecraft code (0-9, a-f), 'x' for the RGB colour in Rgb, or '\0' for the list's default grey.

public MotdStyle(char Color, MotdFormat Format, int Rgb = -1)

Parameters

Color char
Format MotdFormat
Rgb int

Fields

Plain

public static readonly MotdStyle Plain

Field Value

MotdStyle

Properties

Color

public char Color { get; init; }

Property Value

char

Format

public MotdFormat Format { get; init; }

Property Value

MotdFormat

IsHex

public bool IsHex { get; }

Property Value

bool

Rgb

public int Rgb { get; init; }

Property Value

int

Methods

OfHex(int)

A free RGB colour, with no formatting.

public static MotdStyle OfHex(int rgb)

Parameters

rgb int

Returns

MotdStyle

WithColor(char, int)

The same formatting in another colour: a code, or 'x' with its RGB.

public MotdStyle WithColor(char color, int rgb = -1)

Parameters

color char
rgb int

Returns

MotdStyle