Class ScoreboardOperationArgument<C>
java.lang.Object
cloud.commandframework.arguments.CommandArgument<C,net.minecraft.commands.arguments.OperationArgument.Operation>
cloud.commandframework.fabric.argument.ScoreboardOperationArgument<C>
- Type Parameters:
C
- the sender type
- All Implemented Interfaces:
cloud.commandframework.keys.CloudKeyHolder<net.minecraft.commands.arguments.OperationArgument.Operation>
,Comparable<cloud.commandframework.arguments.CommandArgument<?,
?>>
public final class ScoreboardOperationArgument<C>
extends cloud.commandframework.arguments.CommandArgument<C,net.minecraft.commands.arguments.OperationArgument.Operation>
An argument for selecting any of the logical operations in
OperationArgument.Operation
.
These operations can be used to compare scores on a Scoreboard
.
- Since:
- 1.5.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C> @NonNull ScoreboardOperationArgument.Builder<C>
Create a newScoreboardOperationArgument.Builder
.static <C> @NonNull ScoreboardOperationArgument<C>
Create a new requiredScoreboardOperationArgument
.static <C> @NonNull ScoreboardOperationArgument<C>
Create a new optionalScoreboardOperationArgument
.Methods inherited from class cloud.commandframework.arguments.CommandArgument
addPreprocessor, compareTo, copy, equals, getDefaultDescription, getDefaultValue, getKey, getName, getOwningCommand, getParser, getSuggestionsProvider, getValueType, hasDefaultValue, hashCode, isArgumentRegistered, isRequired, ofType, ofType, preprocess, setArgumentRegistered, setOwningCommand, toString
-
Method Details
-
builder
Create a newScoreboardOperationArgument.Builder
.- Type Parameters:
C
- Command sender type- Parameters:
name
- Name of the argument- Returns:
- Created builder
- Since:
- 1.5.0
-
of
Create a new requiredScoreboardOperationArgument
.- Type Parameters:
C
- Command sender type- Parameters:
name
- Component name- Returns:
- Created argument
- Since:
- 1.5.0
-
optional
Create a new optionalScoreboardOperationArgument
.- Type Parameters:
C
- Command sender type- Parameters:
name
- Component name- Returns:
- Created argument
- Since:
- 1.5.0
-