Interface HudPlayer
- All Superinterfaces:
kr.toxicity.command.BetterCommandSource
public interface HudPlayer
extends kr.toxicity.command.BetterCommandSource
Represents player data.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancel and close player's data.voidCancels player's task.@Nullable WidthComponentGets player's additional component.net.kyori.adventure.bossbar.BossBar.ColorGets a player's current bossbar's colorGets a current player's compass.@NotNull HudPlayerHeadgetHead()Gets player head.@NotNull WidthComponentGets player's last bar's component.@NotNull Map<HudObject.Identifier, HudComponentSupplier<?>> Gets a current player's hud objects.getHuds()Gets a current player's hud.@NotNull Set<PointedLocation> Gets a pointed location.@NotNull Map<String, PopupIteratorGroup> Gets a mutable map of popup iterator.@NotNull Map<Object, PopupUpdater> Gets a mutable map of popup updator.Gets a current player's popup.longgetTick()Gets player's current tick It represents the count of update() calling;Gets a mutable map of the player's local variable.@NotNull Objecthandle()Gets original player.booleanReturns whether bossbar update is enabled.@NotNull LocationWrapperlocation()Gets player location@NotNull Stringname()Gets player scoreboard name@NotNull Set<PointedLocation> pointers()Gets all internal player's pointer.voidreload()Reloads this player.voidsave()Save this data by current database.voidsetAdditionalComponent(@Nullable WidthComponent component) Sets player's additional component.voidsetBarColor(net.kyori.adventure.bossbar.BossBar.Color color) Sets player's bossbar color.voidsetHudEnabled(boolean toEnable) Sets whether to update bossbar.voidCancels and Starts player's task.voidupdate()Updates player's bossbar.@NotNull UUIDuuid()Gets player uuid.@NotNull WorldWrapperworld()Gets a player worldMethods inherited from interface kr.toxicity.command.BetterCommandSource
audience, hasPermission, locale, type
-
Method Details
-
uuid
-
name
-
location
-
world
-
getHead
-
handle
-
getHudComponent
Gets player's last bar's component.- Returns:
- component
-
setAdditionalComponent
Sets player's additional component.- Parameters:
component- component
-
getAdditionalComponent
Gets player's additional component.- Returns:
- component
-
isHudEnabled
boolean isHudEnabled()Returns whether bossbar update is enabled.- Returns:
- whether to enable.
-
setHudEnabled
void setHudEnabled(boolean toEnable) Sets whether to update bossbar.- Parameters:
toEnable- whether to update
-
getTick
long getTick()Gets player's current tick It represents the count of update() calling;- Returns:
- tick
-
cancel
void cancel()Cancel and close player's data. -
update
void update()Updates player's bossbar. -
startTick
void startTick()Cancels and Starts player's task. -
cancelTick
void cancelTick()Cancels player's task. -
getPopupGroupIteratorMap
Gets a mutable map of popup iterator.- Returns:
- popup group's map
- See Also:
-
getVariableMap
-
getPopupKeyMap
Gets a mutable map of popup updator.- Returns:
- popup updator map.
-
getBarColor
@Nullable net.kyori.adventure.bossbar.BossBar.Color getBarColor()Gets a player's current bossbar's color- Returns:
- bar color
-
getHudObjects
Gets a current player's hud objects.- Returns:
- hud objects
-
getPopups
-
getHuds
-
getCompasses
-
getPointedLocation
Gets a pointed location.- Returns:
- location set
-
reload
void reload()Reloads this player. -
save
void save()Save this data by current database. -
setBarColor
void setBarColor(@Nullable net.kyori.adventure.bossbar.BossBar.Color color) Sets player's bossbar color.- Parameters:
color- bar color
-
pointers
Gets all internal player's pointer.- Returns:
- mutable pointer set
-