Package net.minecraft.server.command
Class BossBarCommand
java.lang.Object
net.minecraft.server.command.BossBarCommand
public class BossBarCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeCREATE_FAILED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeSET_COLOR_UNCHANGED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeSET_MAX_UNCHANGED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeSET_NAME_UNCHANGED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeSET_PLAYERS_UNCHANGED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeSET_STYLE_UNCHANGED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeSET_VALUE_UNCHANGED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeSET_VISIBILITY_UNCHANGED_HIDDEN_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeSET_VISIBILITY_UNCHANGED_VISIBLE_EXCEPTIONstatic com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>SUGGESTION_PROVIDERprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeUNKNOWN_EXCEPTION -
Constructor Summary
Constructors Constructor Description BossBarCommand() -
Method Summary
Modifier and Type Method Description private static intaddBossBar(ServerCommandSource source, Identifier name, Text displayName)static CommandBossBargetBossBar(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context)private static intgetMaxValue(ServerCommandSource source, CommandBossBar bossBar)private static intgetPlayers(ServerCommandSource source, CommandBossBar bossBar)private static intgetValue(ServerCommandSource source, CommandBossBar bossBar)private static intisVisible(ServerCommandSource source, CommandBossBar bossBar)private static intlistBossBars(ServerCommandSource source)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)private static intremoveBossBar(ServerCommandSource source, CommandBossBar bossBar)private static intsetColor(ServerCommandSource source, CommandBossBar bossBar, BossBar.Color color)private static intsetMaxValue(ServerCommandSource source, CommandBossBar bossBar, int value)private static intsetName(ServerCommandSource source, CommandBossBar bossBar, Text name)private static intsetPlayers(ServerCommandSource source, CommandBossBar bossBar, Collection<ServerPlayerEntity> players)private static intsetStyle(ServerCommandSource source, CommandBossBar bossBar, BossBar.Style style)private static intsetValue(ServerCommandSource source, CommandBossBar bossBar, int value)private static intsetVisible(ServerCommandSource source, CommandBossBar bossBar, boolean visible)
-
Field Details
-
CREATE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType CREATE_FAILED_EXCEPTION -
UNKNOWN_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_EXCEPTION -
SET_PLAYERS_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_PLAYERS_UNCHANGED_EXCEPTION -
SET_NAME_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_NAME_UNCHANGED_EXCEPTION -
SET_COLOR_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_COLOR_UNCHANGED_EXCEPTION -
SET_STYLE_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_STYLE_UNCHANGED_EXCEPTION -
SET_VALUE_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_VALUE_UNCHANGED_EXCEPTION -
SET_MAX_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_MAX_UNCHANGED_EXCEPTION -
SET_VISIBILITY_UNCHANGED_HIDDEN_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_VISIBILITY_UNCHANGED_HIDDEN_EXCEPTION -
SET_VISIBILITY_UNCHANGED_VISIBLE_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_VISIBILITY_UNCHANGED_VISIBLE_EXCEPTION -
SUGGESTION_PROVIDER
public static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> SUGGESTION_PROVIDER
-
-
Constructor Details
-
BossBarCommand
public BossBarCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
getValue
-
getMaxValue
-
isVisible
-
getPlayers
-
setVisible
private static int setVisible(ServerCommandSource source, CommandBossBar bossBar, boolean visible) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setValue
private static int setValue(ServerCommandSource source, CommandBossBar bossBar, int value) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setMaxValue
private static int setMaxValue(ServerCommandSource source, CommandBossBar bossBar, int value) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setColor
private static int setColor(ServerCommandSource source, CommandBossBar bossBar, BossBar.Color color) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setStyle
private static int setStyle(ServerCommandSource source, CommandBossBar bossBar, BossBar.Style style) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setName
private static int setName(ServerCommandSource source, CommandBossBar bossBar, Text name) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setPlayers
private static int setPlayers(ServerCommandSource source, CommandBossBar bossBar, Collection<ServerPlayerEntity> players) -
listBossBars
-
addBossBar
private static int addBossBar(ServerCommandSource source, Identifier name, Text displayName) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
removeBossBar
-
getBossBar
public static CommandBossBar getBossBar(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context)
-