类 TriggerCommand
java.lang.Object
net.minecraft.server.commands.TriggerCommand
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int
addValue
(CommandSourceStack pSource, Score pObjective, int pAmount) private static Score
getScore
(ServerPlayer pPlayer, Objective pObjective) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static int
setValue
(CommandSourceStack pSource, Score pObjective, int pValue) private static int
simpleTrigger
(CommandSourceStack pSource, Score pObjectives) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestObjectives
(CommandSourceStack pSource, com.mojang.brigadier.suggestion.SuggestionsBuilder pBuilder)
-
字段详细资料
-
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
-
-
构造器详细资料
-
TriggerCommand
public TriggerCommand()
-
-
方法详细资料
-
register
-
suggestObjectives
public static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestObjectives(CommandSourceStack pSource, com.mojang.brigadier.suggestion.SuggestionsBuilder pBuilder) -
addValue
-
setValue
-
simpleTrigger
-
getScore
private static Score getScore(ServerPlayer pPlayer, Objective pObjective) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-