public class BossBarCommand extends Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
CREATE_FAILED_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
SET_COLOR_UNCHANGED_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
SET_MAX_UNCHANGED_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
SET_NAME_UNCHANGED_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
SET_PLAYERS_UNCHANGED_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
SET_STYLE_UNCHANGED_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
SET_VALUE_UNCHANGED_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
SET_VISIBILITY_UNCHANGED_HIDDEN_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
SET_VISIBILITY_UNCHANGED_VISIBLE_EXCEPTION |
static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> |
SUGGESTION_PROVIDER |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_EXCEPTION |
Constructor and Description |
---|
BossBarCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
addBossBar(ServerCommandSource source,
Identifier name,
Text displayName) |
static CommandBossBar |
getBossBar(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context) |
private static int |
getMaxValue(ServerCommandSource source,
CommandBossBar bossBar) |
private static int |
getPlayers(ServerCommandSource source,
CommandBossBar bossBar) |
private static int |
getValue(ServerCommandSource source,
CommandBossBar bossBar) |
private static int |
isVisible(ServerCommandSource source,
CommandBossBar bossBar) |
private static int |
listBossBars(ServerCommandSource source) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
private static int |
removeBossBar(ServerCommandSource source,
CommandBossBar bossBar) |
private static int |
setColor(ServerCommandSource source,
CommandBossBar bossBar,
BossBar.Color color) |
private static int |
setMaxValue(ServerCommandSource source,
CommandBossBar bossBar,
int value) |
private static int |
setName(ServerCommandSource source,
CommandBossBar bossBar,
Text name) |
private static int |
setPlayers(ServerCommandSource source,
CommandBossBar bossBar,
Collection<ServerPlayerEntity> players) |
private static int |
setStyle(ServerCommandSource source,
CommandBossBar bossBar,
BossBar.Style style) |
private static int |
setValue(ServerCommandSource source,
CommandBossBar bossBar,
int value) |
private static int |
setVisible(ServerCommandSource source,
CommandBossBar bossBar,
boolean visible) |
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType CREATE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_PLAYERS_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_NAME_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_COLOR_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_STYLE_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_VALUE_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_MAX_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_VISIBILITY_UNCHANGED_HIDDEN_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SET_VISIBILITY_UNCHANGED_VISIBLE_EXCEPTION
public static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> SUGGESTION_PROVIDER
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static int getValue(ServerCommandSource source, CommandBossBar bossBar)
private static int getMaxValue(ServerCommandSource source, CommandBossBar bossBar)
private static int isVisible(ServerCommandSource source, CommandBossBar bossBar)
private static int getPlayers(ServerCommandSource source, CommandBossBar bossBar)
private static int setVisible(ServerCommandSource source, CommandBossBar bossBar, boolean visible) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setValue(ServerCommandSource source, CommandBossBar bossBar, int value) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setMaxValue(ServerCommandSource source, CommandBossBar bossBar, int value) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setColor(ServerCommandSource source, CommandBossBar bossBar, BossBar.Color color) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setStyle(ServerCommandSource source, CommandBossBar bossBar, BossBar.Style style) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setName(ServerCommandSource source, CommandBossBar bossBar, Text name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setPlayers(ServerCommandSource source, CommandBossBar bossBar, Collection<ServerPlayerEntity> players)
private static int listBossBars(ServerCommandSource source)
private static int addBossBar(ServerCommandSource source, Identifier name, Text displayName) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int removeBossBar(ServerCommandSource source, CommandBossBar bossBar)
public static CommandBossBar getBossBar(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context)