Interface AngleResolver
@NonExtendable
public interface AngleResolver
An
ArgumentResolver capable of resolving
an angle value using a CommandSource.-
Method Summary
Modifier and TypeMethodDescriptionfloatresolve(CommandSource source) Resolves the argument with the given command source.
-
Method Details
-
resolve
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
-