Interface AngleResolver

All Superinterfaces:
ArgumentResolver<Float>
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 non-sealed interface AngleResolver extends ArgumentResolver<Float>
Resolves an angle in degrees, wrapped to [-180, 180), absolute or relative (~).
Since:
0.1.0
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static float
    angle(com.mojang.brigadier.context.CommandContext<CommandSource> context, String name)
    Returns the angle argument name in degrees, resolved for the source of context.

    Methods inherited from interface ArgumentResolver

    resolve
  • Method Details

    • angle

      static float angle(com.mojang.brigadier.context.CommandContext<CommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Returns the angle argument name in degrees, resolved for the source of context.
      Parameters:
      context - the command context
      name - the argument name
      Returns:
      the angle argument name in degrees, resolved for the source of context
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException - if it can't be resolved for the source
      Since:
      0.1.0