Interface TypeResolver

All Known Implementing Classes:
ArgumentTypes.SystemTypeResolver, DelegatingNamespacedTypeResolver, MinecraftParameterType.MinecraftTypeResolver

public interface TypeResolver
A class that resolves and compiles ArgumentTypes.
  • Method Summary

    Modifier and Type
    Method
    Description
    default ArgumentType<?>
    compile(TypeIdentifier identifier)
    Compiles a type identifier into an argument type object.
    resolve(net.orbyfied.j8.registry.Identifier identifier)
    Resolves a type by identifier.
  • Method Details

    • resolve

      ArgumentType<?> resolve(net.orbyfied.j8.registry.Identifier identifier)
      Resolves a type by identifier.
      Parameters:
      identifier - The identifier.
      Returns:
      The type or null if not found.
    • compile

      default ArgumentType<?> compile(TypeIdentifier identifier)
      Compiles a type identifier into an argument type object. By default it resolves the base type, and compiles generic type arguments if needed, then includes them and returns the result.
      Parameters:
      identifier - The type identifier/descriptor.
      Returns:
      The argument type or null if not found/valid.