Interface AngleResolver


@NonExtendable public interface AngleResolver
An ArgumentResolver capable of resolving an angle value using a CommandSource.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Resolves the argument with the given command source.
  • Method Details

    • resolve

      float resolve(CommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Resolves the argument with the given command source.
      Parameters:
      source - source
      Returns:
      the resolved angle in degrees.
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException - if an error occurs while parsing