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
ColorcharFormatMotdFormatRgbint
Fields
Plain
public static readonly MotdStyle Plain
Field Value
Properties
Color
public char Color { get; init; }
Property Value
Format
public MotdFormat Format { get; init; }
Property Value
IsHex
public bool IsHex { get; }
Property Value
Rgb
public int Rgb { get; init; }
Property Value
Methods
OfHex(int)
A free RGB colour, with no formatting.
public static MotdStyle OfHex(int rgb)
Parameters
rgbint
Returns
WithColor(char, int)
The same formatting in another colour: a code, or 'x' with its RGB.
public MotdStyle WithColor(char color, int rgb = -1)