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.SimpleCommandExceptionTypeOBJECTIVES_ADD_DUPLICATE_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeOBJECTIVES_DISPLAY_ALREADY_EMPTY_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeOBJECTIVES_DISPLAY_ALREADY_SET_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypePLAYERS_ENABLE_FAILED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypePLAYERS_ENABLE_INVALID_EXCEPTIONprivate static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypePLAYERS_GET_NULL_EXCEPTION -
Constructor Summary
Constructors Constructor Description ScoreboardCommand() -
Method Summary
Modifier and Type Method Description private static intexecuteAdd(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)private static intexecuteAddObjective(ServerCommandSource source, String objective, ScoreboardCriterion criteria, Text displayName)private static intexecuteClearDisplay(ServerCommandSource source, int slot)private static intexecuteEnable(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective)private static intexecuteGet(ServerCommandSource source, String target, ScoreboardObjective objective)private static intexecuteListObjectives(ServerCommandSource source)private static intexecuteListPlayers(ServerCommandSource source)private static intexecuteListScores(ServerCommandSource source, String target)private static intexecuteModifyObjective(ServerCommandSource source, ScoreboardObjective objective, Text displayName)private static intexecuteModifyRenderType(ServerCommandSource source, ScoreboardObjective objective, ScoreboardCriterion.RenderType type)private static intexecuteOperation(ServerCommandSource source, Collection<String> targets, ScoreboardObjective targetObjective, OperationArgumentType.Operation operation, Collection<String> sources, ScoreboardObjective sourceObjectives)private static intexecuteRemove(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)private static intexecuteRemoveObjective(ServerCommandSource source, ScoreboardObjective objective)private static intexecuteReset(ServerCommandSource source, Collection<String> targets)private static intexecuteReset(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective)private static intexecuteSet(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)private static intexecuteSetDisplay(ServerCommandSource source, int slot, ScoreboardObjective objective)private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource>makeRenderTypeArguments()static voidregister(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
-