public interface KeyMixin
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static @NotNull net.kyori.adventure.key.Key
    key(String namespace, String value)
    Creates a key.
  • Method Details

    • key

      @NotNull static @NotNull net.kyori.adventure.key.Key key(String namespace, String value)
      Creates a key.
      Parameters:
      namespace - the namespace
      value - the value
      Returns:
      the key
      Throws:
      net.kyori.adventure.key.InvalidKeyException - if the namespace or value contains an invalid character