Package net.minecraft.server.commands
Class TriggerCommand
java.lang.Object
net.minecraft.server.commands.TriggerCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
addValue
(CommandSourceStack pSource, ServerPlayer pPlayer, Objective pObjective, int pValue) private static ScoreAccess
getScore
(Scoreboard pScoreboard, ScoreHolder pScoreHolder, Objective pObjective) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_139142_) private static int
setValue
(CommandSourceStack pSource, ServerPlayer pPlayer, Objective pObjective, int pValue) private static int
simpleTrigger
(CommandSourceStack pSource, ServerPlayer pPlayer, Objective pObjective) static CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestObjectives
(CommandSourceStack p_139149_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_139150_)
-
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(CommandSourceStack p_139149_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_139150_) -
addValue
private static int addValue(CommandSourceStack pSource, ServerPlayer pPlayer, Objective pObjective, int pValue) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setValue
private static int setValue(CommandSourceStack pSource, ServerPlayer pPlayer, Objective pObjective, int pValue) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
simpleTrigger
private static int simpleTrigger(CommandSourceStack pSource, ServerPlayer pPlayer, Objective pObjective) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getScore
private static ScoreAccess getScore(Scoreboard pScoreboard, ScoreHolder pScoreHolder, Objective pObjective) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-