Class ScoreboardOperationParser<C>

java.lang.Object
org.incendo.cloud.brigadier.parser.WrappedBrigadierParser<C, net.minecraft.commands.arguments.OperationArgument.Operation>
org.incendo.cloud.minecraft.modded.parser.ScoreboardOperationParser<C>
Type Parameters:
C - the sender type
All Implemented Interfaces:
ArgumentParser<C, net.minecraft.commands.arguments.OperationArgument.Operation>, SuggestionProvider<C>, SuggestionProviderHolder<C>

public final class ScoreboardOperationParser<C> extends WrappedBrigadierParser<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.

  • Method Details

    • scoreboardOperationParser

      public static <C> @NonNull ParserDescriptor<C, net.minecraft.commands.arguments.OperationArgument.Operation> scoreboardOperationParser()
      Creates a new scoreboard operation parser.
      Type Parameters:
      C - command sender type
      Returns:
      the created parser
    • scoreboardOperationComponent

      public static <C> @NonNull CommandComponent.Builder<C, net.minecraft.commands.arguments.OperationArgument.Operation> scoreboardOperationComponent()
      Type Parameters:
      C - the command sender type
      Returns:
      the component builder