Hides the hologram to a player, overriding the value of {@link #isVisibleByDefault()}. This is persistent if the players goes offline.
the involved player
Returns if the hologram is visible by default. If not changed, this value is true by default so the hologram is visible to everyone.
if the hologram hologram is visible by default
Checks if a hologram is visible to a player.
the involved player
if the player can see the hologram
Resets the visibility to the default value. If you previously called {@link #showTo(Player)} or {@link #hideTo(Player)} to override the default visibility, this method will reset it to reflect the value of {@link #isVisibleByDefault()}.
the involved player
Resets the visibility for all the players. See {@link #resetVisibility(Player)} for more details.
Sets if the hologram is visible by default. If not changed, this value is true by default so the hologram is visible to everyone.
the new behaviour
Shows the hologram to a player, overriding the value of {@link #isVisibleByDefault()}. This is persistent if the players goes offline.
the involved player
Generated using TypeDoc
This object is used to manage the visibility of a hologram. It allows to hide/show the hologram to certain players, and the default behaviour (when a hologram is not specifically being hidden/shown to a player) can be customized.