net.minecraft.commands.arguments

public class OperationArgument

implements com.mojang.brigadier.arguments.ArgumentType<OperationArgument$Operation>

eg
net.minecraft.commands.arguments.OperationArgument
net.minecraft.class_2218
net.minecraft.command.argument.OperationArgumentType
net.minecraft.src.C_3847_
net.minecraft.commands.arguments.ArgumentMathOperation

Field summary

Modifier and TypeField
private static final Collection<String>
a
EXAMPLES
field_9929
EXAMPLES
f_103264_
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
b
ERROR_INVALID_OPERATION
field_9931
INVALID_OPERATION
f_103265_
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
c
ERROR_DIVIDE_BY_ZERO
field_9930
DIVISION_ZERO_EXCEPTION
f_103266_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static OperationArgument
a()
operation()
method_9404()
operation()
m_103269_()
public static OperationArgument$Operation
a(com.mojang.brigadier.context.CommandContext<dm> arg0, String arg1)
getOperation(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_9409(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getOperation(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
m_103275_(com.mojang.brigadier.context.CommandContext<C_2969_> p_103276_, String p_103277_)
public OperationArgument$Operation
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
method_9412(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_103303_, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
public Collection<String>
getExamples()
getExamples()
getExamples()
private static OperationArgument$Operation
a(String arg0)
getOperation(String arg0)
method_9413(String arg0)
getOperator(String operator)
m_103281_(String p_103282_)
private static OperationArgument$SimpleOperation
b(String arg0)
getSimpleOperation(String arg0)
method_9407(String arg0)
getIntOperator(String operator)
m_103286_(String p_103287_)