Interface HolographicHologramSkin.PlayerSpecificLinesSupplier
- Enclosing interface:
HolographicHologramSkin
public static interface HolographicHologramSkin.PlayerSpecificLinesSupplier
Displays specific lines that vary to each player.
This is for instance used by the stats hologram to display different stats to each player.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Gets called when we want to know which lines shall be displayed to the player.Creates a new supplier that auto-translates the given message for each player.Creates a new supplier that auto-translates the given message for each player.
-
Method Details
-
getLines
Gets called when we want to know which lines shall be displayed to the player.- Parameters:
player
- The according playercallback
- The callback to which you shall return the lines. May be async
-
of
Creates a new supplier that auto-translates the given message for each player.- Parameters:
message
- The message to display- Returns:
- The new supplier
-
of
Creates a new supplier that auto-translates the given message for each player.- Parameters:
lines
- The lines to display- Returns:
- The new supplier
-