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_UMPRIMED_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 serverCommandSource,
ScoreboardPlayerScore scoreboardPlayerScore,
int value) |
private static int |
executeSimple(ServerCommandSource source,
ScoreboardPlayerScore score) |
private static ScoreboardPlayerScore |
getScore(ServerPlayerEntity serverPlayerEntity,
ScoreboardObjective scoreboardObjective) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
suggestObjectives(ServerCommandSource source,
com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_UMPRIMED_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 suggestionsBuilder)
private static int executeAdd(ServerCommandSource source, ScoreboardPlayerScore score, int value)
private static int executeSet(ServerCommandSource serverCommandSource, ScoreboardPlayerScore scoreboardPlayerScore, int value)
private static int executeSimple(ServerCommandSource source, ScoreboardPlayerScore score)
private static ScoreboardPlayerScore getScore(ServerPlayerEntity serverPlayerEntity, ScoreboardObjective scoreboardObjective) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException