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.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate static intaddValue(CommandSourceStack p_139155_, ServerPlayer p_313736_, Objective p_313848_, int p_139157_) private static ScoreAccessgetScore(Scoreboard p_313748_, ScoreHolder p_313873_, Objective p_139140_) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_139142_) private static intsetValue(CommandSourceStack p_139161_, ServerPlayer p_313837_, Objective p_313724_, int p_139163_) private static intsimpleTrigger(CommandSourceStack p_139152_, ServerPlayer p_313865_, Objective p_313706_) 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 p_139155_, ServerPlayer p_313736_, Objective p_313848_, int p_139157_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
setValue
private static int setValue(CommandSourceStack p_139161_, ServerPlayer p_313837_, Objective p_313724_, int p_139163_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
simpleTrigger
private static int simpleTrigger(CommandSourceStack p_139152_, ServerPlayer p_313865_, Objective p_313706_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
getScore
private static ScoreAccess getScore(Scoreboard p_313748_, ScoreHolder p_313873_, Objective p_139140_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 
 -