Interface MinecraftHelp.MessageProvider<C>
- Enclosing class:
MinecraftHelp<C>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@API(status=STABLE,
since="2.0.0")
public static interface MinecraftHelp.MessageProvider<C>
-
Method Summary
Modifier and TypeMethodDescriptionCreates a component from a command sender and key.Creates a component from a command sender, key, and arguments
-
Method Details
-
provide
@NonNull Component provide(@NonNull C sender, @NonNull String key, @NonNull Map<String, String> args) Creates a component from a command sender, key, and arguments- Parameters:
sender- command senderkey- message key (constants inMinecraftHelpargs- args- Returns:
- component
-
provide
Creates a component from a command sender and key.- Parameters:
sender- command senderkey- message key (constants inMinecraftHelp- Returns:
- component
-