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.
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 Summary
Modifier and TypeMethodDescription@Nullable StringgetReplacement(@NotNull org.bukkit.entity.Player player, @Nullable String argument)
-
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 replacementargument- the optional placeholder argument, null if not specified- Returns:
- the optional placeholder replacement, null to leave the placeholder unreplaced
- Since:
- 1
-