类 ScoreboardCommand
java.lang.Object
net.minecraft.server.commands.ScoreboardCommand
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int
addObjective
(CommandSourceStack pSource, String pName, ObjectiveCriteria pCriteria, Component pDisplayName) private static int
addScore
(CommandSourceStack pSource, Collection<String> pTargets, Objective pObjective, int pAmount) private static int
clearDisplaySlot
(CommandSourceStack pSource, int pSlotId) private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>
private static int
enableTrigger
(CommandSourceStack pSource, Collection<String> pTargets, Objective pObjective) private static int
getScore
(CommandSourceStack pSource, String pPlayer, Objective pObjective) private static int
listObjectives
(CommandSourceStack pSource) private static int
listTrackedPlayers
(CommandSourceStack pSource) private static int
listTrackedPlayerScores
(CommandSourceStack pSource, String pPlayer) private static int
performOperation
(CommandSourceStack pSource, Collection<String> pTargetEntities, Objective pTargetObjectives, OperationArgument.Operation pOperation, Collection<String> pSourceEntities, Objective pSourceObjective) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static int
removeObjective
(CommandSourceStack pSource, Objective pObjective) private static int
removeScore
(CommandSourceStack pSource, Collection<String> pTargets, Objective pObjective, int pAmount) private static int
resetScore
(CommandSourceStack pSource, Collection<String> pTargets, Objective pObjective) private static int
resetScores
(CommandSourceStack pSource, Collection<String> pTargets) private static int
setDisplayName
(CommandSourceStack pSource, Objective pObjective, Component pDisplayName) private static int
setDisplaySlot
(CommandSourceStack pSource, int pSlotId, Objective pObjective) private static int
setRenderType
(CommandSourceStack pSource, Objective pObjective, ObjectiveCriteria.RenderType pRenderType) private static int
setScore
(CommandSourceStack pSource, Collection<String> pTargets, Objective pObjective, int pNewValue) private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestTriggers
(CommandSourceStack pSource, Collection<String> pTargets, com.mojang.brigadier.suggestion.SuggestionsBuilder pSuggestions)
-
字段详细资料
-
ERROR_OBJECTIVE_ALREADY_EXISTS
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_OBJECTIVE_ALREADY_EXISTS -
ERROR_DISPLAY_SLOT_ALREADY_EMPTY
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_DISPLAY_SLOT_ALREADY_EMPTY -
ERROR_DISPLAY_SLOT_ALREADY_SET
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_DISPLAY_SLOT_ALREADY_SET -
ERROR_TRIGGER_ALREADY_ENABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TRIGGER_ALREADY_ENABLED -
ERROR_NOT_TRIGGER
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_TRIGGER -
ERROR_NO_VALUE
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_NO_VALUE
-
-
构造器详细资料
-
ScoreboardCommand
public ScoreboardCommand()
-
-
方法详细资料
-
register
-
createRenderTypeModify
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> createRenderTypeModify() -
suggestTriggers
private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTriggers(CommandSourceStack pSource, Collection<String> pTargets, com.mojang.brigadier.suggestion.SuggestionsBuilder pSuggestions) -
getScore
private static int getScore(CommandSourceStack pSource, String pPlayer, Objective pObjective) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
performOperation
private static int performOperation(CommandSourceStack pSource, Collection<String> pTargetEntities, Objective pTargetObjectives, OperationArgument.Operation pOperation, Collection<String> pSourceEntities, Objective pSourceObjective) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
enableTrigger
private static int enableTrigger(CommandSourceStack pSource, Collection<String> pTargets, Objective pObjective) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
resetScores
-
resetScore
private static int resetScore(CommandSourceStack pSource, Collection<String> pTargets, Objective pObjective) -
setScore
private static int setScore(CommandSourceStack pSource, Collection<String> pTargets, Objective pObjective, int pNewValue) -
addScore
private static int addScore(CommandSourceStack pSource, Collection<String> pTargets, Objective pObjective, int pAmount) -
removeScore
private static int removeScore(CommandSourceStack pSource, Collection<String> pTargets, Objective pObjective, int pAmount) -
listTrackedPlayers
-
listTrackedPlayerScores
-
clearDisplaySlot
private static int clearDisplaySlot(CommandSourceStack pSource, int pSlotId) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setDisplaySlot
private static int setDisplaySlot(CommandSourceStack pSource, int pSlotId, Objective pObjective) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setDisplayName
private static int setDisplayName(CommandSourceStack pSource, Objective pObjective, Component pDisplayName) -
setRenderType
private static int setRenderType(CommandSourceStack pSource, Objective pObjective, ObjectiveCriteria.RenderType pRenderType) -
removeObjective
-
addObjective
private static int addObjective(CommandSourceStack pSource, String pName, ObjectiveCriteria pCriteria, Component pDisplayName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listObjectives
-