Package net.minecraft.server.command
Class TriggerCommand
java.lang.Object
net.minecraft.server.command.TriggerCommand
public class TriggerCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeFAILED_INVALID_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeFAILED_UNPRIMED_EXCEPTION -
Constructor Summary
Constructors Constructor Description TriggerCommand() -
Method Summary
Modifier and Type Method Description private static intexecuteAdd(ServerCommandSource source, ScoreboardPlayerScore score, int value)private static intexecuteSet(ServerCommandSource source, ScoreboardPlayerScore score, int value)private static intexecuteSimple(ServerCommandSource source, ScoreboardPlayerScore score)private static ScoreboardPlayerScoregetScore(ServerPlayerEntity player, ScoreboardObjective objective)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>suggestObjectives(ServerCommandSource source, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
-
Field Details
-
FAILED_UNPRIMED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_UNPRIMED_EXCEPTION -
FAILED_INVALID_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_INVALID_EXCEPTION
-
-
Constructor Details
-
TriggerCommand
public TriggerCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
suggestObjectives
public static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestObjectives(ServerCommandSource source, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) -
executeAdd
-
executeSet
-
executeSimple
-
getScore
private static ScoreboardPlayerScore getScore(ServerPlayerEntity player, ScoreboardObjective objective) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-