Package net.minecraft.server.commands
Class TriggerCommand
java.lang.Object
net.minecraft.server.commands.TriggerCommand
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static intaddValue(CommandSourceStack p_139155_, Score p_139156_, int p_139157_) private static ScoregetScore(ServerPlayer p_139139_, Objective p_139140_) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_139142_) private static intsetValue(CommandSourceStack p_139161_, Score p_139162_, int p_139163_) private static intsimpleTrigger(CommandSourceStack p_139152_, Score p_139153_) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>suggestObjectives(CommandSourceStack p_139149_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_139150_) 
- 
Field Details- 
ERROR_NOT_PRIMEDprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_PRIMED
- 
ERROR_INVALID_OBJECTIVEprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID_OBJECTIVE
 
- 
- 
Constructor Details- 
TriggerCommandpublic TriggerCommand()
 
- 
- 
Method Details- 
register
- 
suggestObjectivespublic static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestObjectives(CommandSourceStack p_139149_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_139150_) 
- 
addValue
- 
setValue
- 
simpleTrigger
- 
getScoreprivate static Score getScore(ServerPlayer p_139139_, Objective p_139140_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
 
-