Interface IndividualPlaceholderReplaceFunction

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IndividualPlaceholderReplaceFunction
Simplified version of IndividualPlaceholder where the refresh interval in ticks is passed through the registration method HolographicDisplaysAPI.registerIndividualPlaceholder(String, int, IndividualPlaceholderReplaceFunction) as a constant.
Since:
1
  • Method Details

    • getReplacement

      @Nullable @Nullable String getReplacement(@NotNull @NotNull org.bukkit.entity.Player player, @Nullable @Nullable String argument)
      Parameters:
      player - the player that will see the provided replacement
      argument - the optional placeholder argument, null if not specified
      Returns:
      the optional placeholder replacement, null to leave the placeholder unreplaced
      Since:
      1