Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ALWAYS - Enum constant in enum class com.cotani.nametag.api.CollisionRule
-
Physical collisions are always enabled for all players.
- ALWAYS - Enum constant in enum class com.cotani.nametag.api.NametagVisibility
-
Nametag is always visible to all players.
- apply(UUID, Nametag) - Method in interface com.cotani.nametag.api.NametagModule
-
Applies a global nametag to a player by UUID.
- apply(Player, Nametag) - Method in interface com.cotani.nametag.api.NametagModule
-
Applies a global nametag to a player.
- applyBatch(Map) - Method in interface com.cotani.nametag.api.NametagModule
-
Applies global nametags in batch for multiple players.
- applyForViewer(UUID, UUID, Nametag) - Method in interface com.cotani.nametag.api.NametagModule
-
Applies a viewer-specific nametag override for a target player by UUID.
- applyForViewer(Player, Player, Nametag) - Method in interface com.cotani.nametag.api.NametagModule
-
Applies a viewer-specific nametag override for a target player.
B
- build() - Method in class com.cotani.nametag.api.Nametag.Builder
- builder() - Static method in record class com.cotani.nametag.api.Nametag
-
Creates a new fluent
Nametag.Builder. - Builder() - Constructor for class com.cotani.nametag.api.Nametag.Builder
C
- close() - Method in interface com.cotani.nametag.api.NametagModule
-
Closes the module, clearing all teams and unregistering listeners.
- collisionRule() - Method in record class com.cotani.nametag.api.Nametag
-
Returns the value of the
collisionRulerecord component. - collisionRule(CollisionRule) - Method in class com.cotani.nametag.api.Nametag.Builder
- CollisionRule - Enum Class in com.cotani.nametag.api
-
Defines physical entity collision rules associated with player scoreboard teams.
- color() - Method in record class com.cotani.nametag.api.Nametag
-
Returns the value of the
colorrecord component. - color(NamedTextColor) - Method in class com.cotani.nametag.api.Nametag.Builder
- com.cotani.nametag - package com.cotani.nametag
- com.cotani.nametag.api - package com.cotani.nametag.api
- CotaniNametags - Class in com.cotani.nametag
-
Main factory for bootstrapping and configuring the Cotani Nametag module.
- create(Plugin, PaperTaskScheduler) - Static method in class com.cotani.nametag.CotaniNametags
-
Creates and registers a new
NametagModuleinstance.
D
- DEFAULT_PRIORITY - Static variable in record class com.cotani.nametag.api.Nametag
E
- EMPTY - Static variable in record class com.cotani.nametag.api.Nametag
- equals(Object) - Method in record class com.cotani.nametag.api.Nametag
-
Indicates whether some other object is "equal to" this one.
F
- friendlyFire() - Method in record class com.cotani.nametag.api.Nametag
-
Returns the value of the
friendlyFirerecord component. - friendlyFire(boolean) - Method in class com.cotani.nametag.api.Nametag.Builder
G
- getEffectiveNametag(UUID, UUID) - Method in interface com.cotani.nametag.api.NametagModule
-
Resolves the effective nametag that a specific viewer sees for a target player by UUID.
- getEffectiveNametag(Player, Player) - Method in interface com.cotani.nametag.api.NametagModule
-
Resolves the effective nametag that a specific viewer sees for a target player.
- getNametag(UUID) - Method in interface com.cotani.nametag.api.NametagModule
-
Gets the configured global nametag of a player by UUID, if present.
- getNametag(Player) - Method in interface com.cotani.nametag.api.NametagModule
-
Gets the configured global nametag of a player, if present.
- globalNametags() - Method in interface com.cotani.nametag.api.NametagModule
-
Returns an immutable copy of all registered global nametags.
H
- hashCode() - Method in record class com.cotani.nametag.api.Nametag
-
Returns a hash code value for this object.
- HIDE_FOR_OTHER_TEAMS - Enum constant in enum class com.cotani.nametag.api.NametagVisibility
-
Nametag is hidden for players on other teams.
- HIDE_FOR_OWN_TEAM - Enum constant in enum class com.cotani.nametag.api.NametagVisibility
-
Nametag is hidden for players on the same team.
N
- Nametag - Record Class in com.cotani.nametag.api
-
Immutable representation of a player's nametag, tablist sorting priority, and team options.
- Nametag(int, Component, Component, NamedTextColor, NametagVisibility, CollisionRule, boolean, boolean) - Constructor for record class com.cotani.nametag.api.Nametag
-
Creates an instance of a
Nametagrecord class. - Nametag.Builder - Class in com.cotani.nametag.api
-
Fluent builder for
Nametag. - NametagModule - Interface in com.cotani.nametag.api
-
Service contract for managing player nametags, tablist sorting priority, and scoreboard team rules.
- NametagProvider - Interface in com.cotani.nametag.api
-
Functional SPI for dynamically resolving player nametags per viewer.
- NametagVisibility - Enum Class in com.cotani.nametag.api
-
Defines visibility policies for player nametags above their heads.
- NEVER - Enum constant in enum class com.cotani.nametag.api.CollisionRule
-
Physical collisions are completely disabled for this team.
- NEVER - Enum constant in enum class com.cotani.nametag.api.NametagVisibility
-
Nametag is never visible to any player.
O
- of(Component, Component) - Static method in record class com.cotani.nametag.api.Nametag
-
Creates a simple Nametag with prefix and suffix.
- of(Component, Component, int) - Static method in record class com.cotani.nametag.api.Nametag
-
Creates a simple Nametag with prefix, suffix, and priority.
P
- prefix() - Method in record class com.cotani.nametag.api.Nametag
-
Returns the value of the
prefixrecord component. - prefix(String) - Method in class com.cotani.nametag.api.Nametag.Builder
- prefix(Component) - Method in class com.cotani.nametag.api.Nametag.Builder
- prefixEscaped(String) - Method in class com.cotani.nametag.api.Nametag.Builder
- priority() - Method in record class com.cotani.nametag.api.Nametag
-
Returns the value of the
priorityrecord component. - priority(int) - Method in class com.cotani.nametag.api.Nametag.Builder
- provideNametag(Player, Player) - Method in interface com.cotani.nametag.api.NametagProvider
-
Resolves the nametag for a target player as observed by a viewer.
- PUSH_OTHER_TEAMS - Enum constant in enum class com.cotani.nametag.api.CollisionRule
-
Players on this team only push players on other teams.
- PUSH_OWN_TEAM - Enum constant in enum class com.cotani.nametag.api.CollisionRule
-
Players on this team only push teammates.
R
- refresh(UUID) - Method in interface com.cotani.nametag.api.NametagModule
-
Refreshes scoreboards for a specific player by UUID.
- refresh(Player) - Method in interface com.cotani.nametag.api.NametagModule
-
Refreshes scoreboards for a specific player (both as a viewer and target).
- refreshAll() - Method in interface com.cotani.nametag.api.NametagModule
-
Refreshes all scoreboards for all online players.
- registerProvider(NametagProvider) - Method in interface com.cotani.nametag.api.NametagModule
-
Registers a dynamic
NametagProvider. - reset(UUID) - Method in interface com.cotani.nametag.api.NametagModule
-
Resets the global nametag of a player by UUID to the default empty nametag.
- reset(Player) - Method in interface com.cotani.nametag.api.NametagModule
-
Resets the global nametag of a player to the default empty nametag.
- resetAll(UUID) - Method in interface com.cotani.nametag.api.NametagModule
-
Resets all tags for a player by UUID.
- resetAll(Player) - Method in interface com.cotani.nametag.api.NametagModule
-
Resets all tags for a player, including their global tag and any viewer-specific overrides.
- resetBatch(Collection) - Method in interface com.cotani.nametag.api.NametagModule
-
Resets global nametags in batch for multiple players.
- resetForViewer(UUID, UUID) - Method in interface com.cotani.nametag.api.NametagModule
-
Resets any viewer-specific override for a target player by UUID.
- resetForViewer(Player, Player) - Method in interface com.cotani.nametag.api.NametagModule
-
Resets any viewer-specific override for a target player.
S
- seeFriendlyInvisibles() - Method in record class com.cotani.nametag.api.Nametag
-
Returns the value of the
seeFriendlyInvisiblesrecord component. - seeFriendlyInvisibles(boolean) - Method in class com.cotani.nametag.api.Nametag.Builder
- suffix() - Method in record class com.cotani.nametag.api.Nametag
-
Returns the value of the
suffixrecord component. - suffix(String) - Method in class com.cotani.nametag.api.Nametag.Builder
- suffix(Component) - Method in class com.cotani.nametag.api.Nametag.Builder
- suffixEscaped(String) - Method in class com.cotani.nametag.api.Nametag.Builder
T
- toBuilder() - Method in record class com.cotani.nametag.api.Nametag
-
Creates a new fluent
Nametag.Builderpre-populated with this nametag's values. - toOptionStatus() - Method in enum class com.cotani.nametag.api.CollisionRule
-
Converts this collision rule to Bukkit's
Team.OptionStatus. - toOptionStatus() - Method in enum class com.cotani.nametag.api.NametagVisibility
-
Converts this visibility rule to Bukkit's
Team.OptionStatus. - toString() - Method in record class com.cotani.nametag.api.Nametag
-
Returns a string representation of this record class.
U
- unregisterProvider(NametagProvider) - Method in interface com.cotani.nametag.api.NametagModule
-
Unregisters a previously registered
NametagProvider.
V
- valueOf(String) - Static method in enum class com.cotani.nametag.api.CollisionRule
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.cotani.nametag.api.NametagVisibility
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.cotani.nametag.api.CollisionRule
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.cotani.nametag.api.NametagVisibility
-
Returns an array containing the constants of this enum class, in the order they are declared.
- visibility() - Method in record class com.cotani.nametag.api.Nametag
-
Returns the value of the
visibilityrecord component. - visibility(NametagVisibility) - Method in class com.cotani.nametag.api.Nametag.Builder
All Classes and Interfaces|All Packages|Constant Field Values