Package com.andrei1058.spigot.sidebar
Interface PlayerTab
- All Known Subinterfaces:
VersionedTabGroup
public interface PlayerTab
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
static enum
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(org.bukkit.entity.Player player) Add a player to tab-list formatting.Unique identifier.@Nullable org.bukkit.entity.Player
Get PAPI user used for placeholder replacements.void
remove
(org.bukkit.entity.Player player) Remove the given player from tab-list formatting.void
setNameTagVisibility
(PlayerTab.NameTagVisibility nameTagVisibility) Set name-tag visibility for current team.void
Set pushing rule for current team.void
setSubject
(@Nullable org.bukkit.entity.Player player) PAPI subject.
-
Method Details
-
add
void add(org.bukkit.entity.Player player) Add a player to tab-list formatting.- Parameters:
player
- to be formatted.
-
remove
void remove(org.bukkit.entity.Player player) Remove the given player from tab-list formatting.- Parameters:
player
- to be removed.
-
setSubject
void setSubject(@Nullable @Nullable org.bukkit.entity.Player player) PAPI subject.- Parameters:
player
- papi target for placeholders.
-
getSubject
@Nullable @Nullable org.bukkit.entity.Player getSubject()Get PAPI user used for placeholder replacements.- Returns:
- papi subject.
-
setPushingRule
Set pushing rule for current team. -
setNameTagVisibility
Set name-tag visibility for current team. -
getIdentifier
String getIdentifier()Unique identifier.
-