Class ArgumentRelativeVec3
java.lang.Object
net.minestom.server.command.builder.arguments.Argument<T>
net.minestom.server.command.builder.arguments.relative.ArgumentRelative<RelativeVec>
net.minestom.server.command.builder.arguments.relative.ArgumentRelativeVec
net.minestom.server.command.builder.arguments.relative.ArgumentRelativeVec3
public class ArgumentRelativeVec3 extends ArgumentRelativeVec
Represents a
Vector
with 3 floating numbers (x;y;z) which can take relative coordinates.
Example: -1.2 ~ 5
-
Field Summary
Fields inherited from class net.minestom.server.command.builder.arguments.relative.ArgumentRelative
INVALID_NUMBER_COUNT_ERROR, INVALID_NUMBER_ERROR, RELATIVE_CHAR
Fields inherited from class net.minestom.server.command.builder.arguments.Argument
SUCCESS, UNDEFINED_ERROR
-
Constructor Summary
Constructors Constructor Description ArgumentRelativeVec3(java.lang.String id)
-
Method Summary
Modifier and Type Method Description RelativeVec
parse(java.lang.String value)
Called afterArgument.getCorrectionResult(String)
returnedArgument.SUCCESS
.Methods inherited from class net.minestom.server.command.builder.arguments.relative.ArgumentRelativeVec
getConditionResult, getCorrectionResult
Methods inherited from class net.minestom.server.command.builder.arguments.relative.ArgumentRelative
getNumberCount
Methods inherited from class net.minestom.server.command.builder.arguments.Argument
allowSpace, getCallback, getId, hasErrorCallback, setCallback, useRemaining
-
Constructor Details
-
ArgumentRelativeVec3
public ArgumentRelativeVec3(@NotNull java.lang.String id)
-
-
Method Details
-
parse
Description copied from class:Argument
Called afterArgument.getCorrectionResult(String)
returnedArgument.SUCCESS
.The correction being correct means that
value
shouldn't be verified again, you can assume that no exception will occur when converting it to the correct type.- Specified by:
parse
in classArgument<RelativeVec>
- Parameters:
value
- The correct argument which does not need to be verified again- Returns:
- The parsed argument
-