Interface GlobalPlaceholderReplaceFunction

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 GlobalPlaceholderReplaceFunction
Simplified version of GlobalPlaceholder where the refresh interval in ticks is passed through the registration method HolographicDisplaysAPI.registerGlobalPlaceholder(String, int, GlobalPlaceholderReplaceFunction) as a constant.
Since:
1
  • Method Details

    • getReplacement

      @Nullable @Nullable String getReplacement(@Nullable @Nullable String argument)
      Parameters:
      argument - the optional placeholder argument, null if not specified
      Returns:
      the optional placeholder replacement, null to leave the placeholder unreplaced
      Since:
      1