Package net.minecraft.command.impl
Class TriggerCommand
- java.lang.Object
-
- net.minecraft.command.impl.TriggerCommand
-
public class TriggerCommand extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_INVALID_OBJECTIVE
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_NOT_PRIMED
-
Constructor Summary
Constructors Constructor Description TriggerCommand()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private 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 java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestObjectives(CommandSource p_198850_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_198850_1_)
-
-
-
Method Detail
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198852_0_)
-
suggestObjectives
public static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestObjectives(CommandSource p_198850_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_198850_1_)
-
addValue
private static int addValue(CommandSource p_201479_0_, Score p_201479_1_, int p_201479_2_)
-
setValue
private static int setValue(CommandSource p_201478_0_, Score p_201478_1_, int p_201478_2_)
-
simpleTrigger
private static int simpleTrigger(CommandSource p_201477_0_, Score p_201477_1_)
-
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
-
-