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 public static interface MinecraftHelp.MessageProvider<C>
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull net.kyori.adventure.text.Component
    provide​(@NonNull C sender, @NonNull String key, @NonNull String... args)
    Creates a component from a command sender, key, and arguments
  • Method Details

    • provide

      @NonNull net.kyori.adventure.text.Component provide(@NonNull C sender, @NonNull String key, @NonNull String... args)
      Creates a component from a command sender, key, and arguments
      Parameters:
      sender - command sender
      key - message key (constants in MinecraftHelp
      args - args
      Returns:
      component