public class BossBarCommand
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ALREADY_COLOR_OF_BOSSBAR |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ALREADY_MAX_OF_BOSSBAR |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ALREADY_NAME_OF_BOSSBAR |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ALREADY_STYLE_OF_BOSSBAR |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ALREADY_VALUE_OF_BOSSBAR |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
BOSS_BAR_ID_TAKEN |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
BOSSBAR_ALREADY_HIDDEN |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
BOSSBAR_ALREADY_VISIBLE |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
NO_BOSSBAR_WITH_ID |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
PLAYERS_ALREADY_ON_BOSSBAR |
static com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> |
SUGGESTIONS_PROVIDER |
Constructor and Description |
---|
BossBarCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
createBossbar(CommandSource source,
ResourceLocation id,
ITextComponent displayName) |
static CustomServerBossInfo |
getBossbar(com.mojang.brigadier.context.CommandContext<CommandSource> source) |
private static int |
getMax(CommandSource source,
CustomServerBossInfo bossbar) |
private static int |
getPlayers(CommandSource source,
CustomServerBossInfo bossbar) |
private static int |
getValue(CommandSource source,
CustomServerBossInfo bossbar) |
private static int |
getVisibility(CommandSource source,
CustomServerBossInfo bossbar) |
private static int |
listBars(CommandSource source) |
static void |
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher) |
private static int |
removeBossbar(CommandSource source,
CustomServerBossInfo bossbar) |
private static int |
setColor(CommandSource source,
CustomServerBossInfo bossbar,
BossInfo.Color color) |
private static int |
setMax(CommandSource source,
CustomServerBossInfo bossbar,
int max) |
private static int |
setName(CommandSource source,
CustomServerBossInfo bossbar,
ITextComponent name) |
private static int |
setPlayers(CommandSource source,
CustomServerBossInfo bossbar,
java.util.Collection<ServerPlayerEntity> players) |
private static int |
setStyle(CommandSource source,
CustomServerBossInfo bossbar,
BossInfo.Overlay styleIn) |
private static int |
setValue(CommandSource source,
CustomServerBossInfo bossbar,
int value) |
private static int |
setVisibility(CommandSource source,
CustomServerBossInfo bossbar,
boolean visible) |
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType BOSS_BAR_ID_TAKEN
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType NO_BOSSBAR_WITH_ID
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType PLAYERS_ALREADY_ON_BOSSBAR
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_NAME_OF_BOSSBAR
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_COLOR_OF_BOSSBAR
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_STYLE_OF_BOSSBAR
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_VALUE_OF_BOSSBAR
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_MAX_OF_BOSSBAR
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType BOSSBAR_ALREADY_HIDDEN
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType BOSSBAR_ALREADY_VISIBLE
public static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> SUGGESTIONS_PROVIDER
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
private static int getValue(CommandSource source, CustomServerBossInfo bossbar)
private static int getMax(CommandSource source, CustomServerBossInfo bossbar)
private static int getVisibility(CommandSource source, CustomServerBossInfo bossbar)
private static int getPlayers(CommandSource source, CustomServerBossInfo bossbar)
private static int setVisibility(CommandSource source, CustomServerBossInfo bossbar, boolean visible) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setValue(CommandSource source, CustomServerBossInfo bossbar, int value) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setMax(CommandSource source, CustomServerBossInfo bossbar, int max) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setColor(CommandSource source, CustomServerBossInfo bossbar, BossInfo.Color color) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setStyle(CommandSource source, CustomServerBossInfo bossbar, BossInfo.Overlay styleIn) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setName(CommandSource source, CustomServerBossInfo bossbar, ITextComponent name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int setPlayers(CommandSource source, CustomServerBossInfo bossbar, java.util.Collection<ServerPlayerEntity> players) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int listBars(CommandSource source)
private static int createBossbar(CommandSource source, ResourceLocation id, ITextComponent displayName) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int removeBossbar(CommandSource source, CustomServerBossInfo bossbar)
public static CustomServerBossInfo getBossbar(com.mojang.brigadier.context.CommandContext<CommandSource> source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException