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 Details

    • getLines

      void getLines(Player player, Consumer<List<String>> callback)
      Gets called when we want to know which lines shall be displayed to the player.
      Parameters:
      player - The according player
      callback - 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