Types: string - GrantShotwell/MCSharp GitHub Wiki

string

Defined Methods

Method Overflow Return Value Description
Format() [string](/GrantShotwell/MCSharp/wiki/Types:-string) Equivalent to string interpolation in C#.

Examples

// Format() Example //
int x = 0;

Chat.Tellraw("@a", "{{x}} is replaced with {x}.".Format());
// "{x} is replaced with 0."

Chat.Tellraw("@a", "{{x + 1}} is replaced with {x + 1}".Format());
// "{x + 1} is replaced with 1."