public class TriggerCommand
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
NOT_A_TRIGGER |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
NOT_PRIMED |
Constructor and Description |
---|
TriggerCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
addToTrigger(CommandSource source,
Score objective,
int amount) |
private static Score |
checkValidTrigger(ServerPlayerEntity player,
ScoreObjective objective) |
private static int |
incrementTrigger(CommandSource source,
Score objectives) |
static void |
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher) |
private static int |
setTrigger(CommandSource source,
Score objective,
int value) |
static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
suggestTriggers(CommandSource source,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NOT_PRIMED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NOT_A_TRIGGER
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
public static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTriggers(CommandSource source, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
private static int addToTrigger(CommandSource source, Score objective, int amount)
private static int setTrigger(CommandSource source, Score objective, int value)
private static int incrementTrigger(CommandSource source, Score objectives)
private static Score checkValidTrigger(ServerPlayerEntity player, ScoreObjective objective) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException