NametagStyle
Namespace Mc.Scripting · Kind class (sealed)
public sealed class NametagStyleThe look of a nametag for one viewer (see Nametags.Set).
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
NametagStyle() |
Constructor
Section titled “Constructor”public NametagStyle()Properties
Section titled “Properties”| 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. |
Collision
Section titled “Collision”public NametagCollision Collision { get; init; }Who the player collides with.
Colour
Section titled “Colour”public int? Colour { get; init; }The team colour of the name, 0 to 15 (the colour codes), or null for none.
FriendlyFire
Section titled “FriendlyFire”public bool FriendlyFire { get; init; }Whether the players of the team hit each other.
Prefix
Section titled “Prefix”public Component? Prefix { get; init; }The text before the name, or null for none.
SeeInvisibles
Section titled “SeeInvisibles”public bool SeeInvisibles { get; init; }Whether the players of the team see the invisible players of the team.
Suffix
Section titled “Suffix”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.
Visibility
Section titled “Visibility”public NametagVisibility Visibility { get; init; }Who sees the nametag.