Package net.minecraft.command.impl
Class TriggerCommand
java.lang.Object
net.minecraft.command.impl.TriggerCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
addValue
(CommandSource p_201479_0_, Score p_201479_1_, int p_201479_2_) private static Score
getScore
(ServerPlayerEntity p_198848_0_, ScoreObjective p_198848_1_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198852_0_) private static int
setValue
(CommandSource p_201478_0_, Score p_201478_1_, int p_201478_2_) private static int
simpleTrigger
(CommandSource p_201477_0_, Score p_201477_1_) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestObjectives
(CommandSource p_198850_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_198850_1_)
-
Field Details
-
ERROR_NOT_PRIMED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_PRIMED -
ERROR_INVALID_OBJECTIVE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID_OBJECTIVE
-
-
Constructor Details
-
TriggerCommand
public TriggerCommand()
-
-
Method Details
-
register
-
suggestObjectives
public static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestObjectives(CommandSource p_198850_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_198850_1_) -
addValue
-
setValue
-
simpleTrigger
-
getScore
private static Score getScore(ServerPlayerEntity p_198848_0_, ScoreObjective p_198848_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-