Skip to content

NametagStyle

Namespace Mc.Scripting · Kind class (sealed)

public sealed class NametagStyle

The look of a nametag for one viewer (see Nametags.Set).

Member Description
NametagStyle()
public NametagStyle()
Member Description
NametagCollision Collision { get; init; } Who the player collides with.
int? Colour { get; init; } The team colour of the name, 0 to 15 (the colour codes), or null for none.
bool FriendlyFire { get; init; } Whether the players of the team hit each other.
Component? Prefix { get; init; } The text before the name, or null for none.
bool SeeInvisibles { get; init; } Whether the players of the team see the invisible players of the team.
Component? Suffix { get; init; } The text after the name, or null for none.
NametagVisibility Visibility { get; init; } Who sees the nametag.
public NametagCollision Collision { get; init; }

Who the player collides with.

public int? Colour { get; init; }

The team colour of the name, 0 to 15 (the colour codes), or null for none.

public bool FriendlyFire { get; init; }

Whether the players of the team hit each other.

public Component? Prefix { get; init; }

The text before the name, or null for none.

public bool SeeInvisibles { get; init; }

Whether the players of the team see the invisible players of the team.

public Component? Suffix { get; init; }

The text after the name, or null for none. The prefix and the suffix together are at most 8000 bytes.

public NametagVisibility Visibility { get; init; }

Who sees the nametag.

Component · NametagCollision · NametagVisibility