public class TriggerCommand extends Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
FAILED_INVALID_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
FAILED_UNPRIMED_EXCEPTION |
Constructor and Description |
---|
TriggerCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
executeAdd(ServerCommandSource source,
ScoreboardPlayerScore score,
int value) |
private static int |
executeSet(ServerCommandSource source,
ScoreboardPlayerScore score,
int value) |
private static int |
executeSimple(ServerCommandSource source,
ScoreboardPlayerScore score) |
private static ScoreboardPlayerScore |
getScore(ServerPlayerEntity player,
ScoreboardObjective objective) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
suggestObjectives(ServerCommandSource source,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_UNPRIMED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_INVALID_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
public static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestObjectives(ServerCommandSource source, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
private static int executeAdd(ServerCommandSource source, ScoreboardPlayerScore score, int value)
private static int executeSet(ServerCommandSource source, ScoreboardPlayerScore score, int value)
private static int executeSimple(ServerCommandSource source, ScoreboardPlayerScore score)
private static ScoreboardPlayerScore getScore(ServerPlayerEntity player, ScoreboardObjective objective) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException