@Experimental @NullMarked @NonExtendable public interface AngleResolver
An ArgumentResolver capable of resolving an angle value using a CommandSourceStack.
See Also:
  • Method Summary

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

    • resolve

      float resolve(CommandSourceStack sourceStack) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Resolves the argument with the given command source stack.
      Parameters:
      sourceStack - source stack
      Returns:
      the resolved angle in degrees.
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException