Package net.minecraft.server.command
Class ScoreboardCommand
java.lang.Object
net.minecraft.server.command.ScoreboardCommand
public class ScoreboardCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
OBJECTIVES_ADD_DUPLICATE_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
OBJECTIVES_DISPLAY_ALREADY_EMPTY_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
OBJECTIVES_DISPLAY_ALREADY_SET_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
PLAYERS_ENABLE_FAILED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
PLAYERS_ENABLE_INVALID_EXCEPTION
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
PLAYERS_GET_NULL_EXCEPTION
-
Constructor Summary
Constructors Constructor Description ScoreboardCommand()
-
Method Summary
Modifier and Type Method Description private static int
executeAdd(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)
private static int
executeAddObjective(ServerCommandSource source, String objective, ScoreboardCriterion criteria, Text displayName)
private static int
executeClearDisplay(ServerCommandSource source, int slot)
private static int
executeEnable(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective)
private static int
executeGet(ServerCommandSource source, String target, ScoreboardObjective objective)
private static int
executeListObjectives(ServerCommandSource source)
private static int
executeListPlayers(ServerCommandSource source)
private static int
executeListScores(ServerCommandSource source, String target)
private static int
executeModifyObjective(ServerCommandSource source, ScoreboardObjective objective, Text displayName)
private static int
executeModifyRenderType(ServerCommandSource source, ScoreboardObjective objective, ScoreboardCriterion.RenderType type)
private static int
executeOperation(ServerCommandSource source, Collection<String> targets, ScoreboardObjective targetObjective, OperationArgumentType.Operation operation, Collection<String> sources, ScoreboardObjective sourceObjectives)
private static int
executeRemove(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)
private static int
executeRemoveObjective(ServerCommandSource source, ScoreboardObjective objective)
private static int
executeReset(ServerCommandSource source, Collection<String> targets)
private static int
executeReset(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective)
private static int
executeSet(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)
private static int
executeSetDisplay(ServerCommandSource source, int slot, ScoreboardObjective objective)
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource>
makeRenderTypeArguments()
static void
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestDisabled(ServerCommandSource source, Collection<String> targets, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
-
Field Details
-
OBJECTIVES_ADD_DUPLICATE_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OBJECTIVES_ADD_DUPLICATE_EXCEPTION -
OBJECTIVES_DISPLAY_ALREADY_EMPTY_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OBJECTIVES_DISPLAY_ALREADY_EMPTY_EXCEPTION -
OBJECTIVES_DISPLAY_ALREADY_SET_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OBJECTIVES_DISPLAY_ALREADY_SET_EXCEPTION -
PLAYERS_ENABLE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType PLAYERS_ENABLE_FAILED_EXCEPTION -
PLAYERS_ENABLE_INVALID_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType PLAYERS_ENABLE_INVALID_EXCEPTION -
PLAYERS_GET_NULL_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType PLAYERS_GET_NULL_EXCEPTION
-
-
Constructor Details
-
ScoreboardCommand
public ScoreboardCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
makeRenderTypeArguments
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> makeRenderTypeArguments() -
suggestDisabled
private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestDisabled(ServerCommandSource source, Collection<String> targets, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) -
executeGet
private static int executeGet(ServerCommandSource source, String target, ScoreboardObjective objective) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeOperation
private static int executeOperation(ServerCommandSource source, Collection<String> targets, ScoreboardObjective targetObjective, OperationArgumentType.Operation operation, Collection<String> sources, ScoreboardObjective sourceObjectives) -
executeEnable
private static int executeEnable(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective) -
executeReset
-
executeReset
private static int executeReset(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective) -
executeSet
private static int executeSet(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score) -
executeAdd
private static int executeAdd(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score) -
executeRemove
private static int executeRemove(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score) -
executeListPlayers
-
executeListScores
-
executeClearDisplay
private static int executeClearDisplay(ServerCommandSource source, int slot) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeSetDisplay
private static int executeSetDisplay(ServerCommandSource source, int slot, ScoreboardObjective objective) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeModifyObjective
private static int executeModifyObjective(ServerCommandSource source, ScoreboardObjective objective, Text displayName) -
executeModifyRenderType
private static int executeModifyRenderType(ServerCommandSource source, ScoreboardObjective objective, ScoreboardCriterion.RenderType type) -
executeRemoveObjective
private static int executeRemoveObjective(ServerCommandSource source, ScoreboardObjective objective) -
executeAddObjective
private static int executeAddObjective(ServerCommandSource source, String objective, ScoreboardCriterion criteria, Text displayName) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeListObjectives
-