Package net.minecraft.command.impl
Class BossBarCommand
- java.lang.Object
-
- net.minecraft.command.impl.BossBarCommand
-
public class BossBarCommand extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeERROR_ALREADY_EXISTSprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_ALREADY_HIDDENprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_ALREADY_VISIBLEprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeERROR_DOESNT_EXISTprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_NO_COLOR_CHANGEprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_NO_MAX_CHANGEprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_NO_NAME_CHANGEprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_NO_PLAYER_CHANGEprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_NO_STYLE_CHANGEprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_NO_VALUE_CHANGEstatic com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>SUGGEST_BOSS_BAR
-
Constructor Summary
Constructors Constructor Description BossBarCommand()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static intcreateBar(CommandSource p_201400_0_, ResourceLocation p_201400_1_, ITextComponent p_201400_2_)static CustomServerBossInfogetBossBar(com.mojang.brigadier.context.CommandContext<CommandSource> p_201416_0_)private static intgetMax(CommandSource p_201402_0_, CustomServerBossInfo p_201402_1_)private static intgetPlayers(CommandSource p_201425_0_, CustomServerBossInfo p_201425_1_)private static intgetValue(CommandSource p_201414_0_, CustomServerBossInfo p_201414_1_)private static intgetVisible(CommandSource p_201389_0_, CustomServerBossInfo p_201389_1_)private static intlistBars(CommandSource p_201428_0_)static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSource> p_201413_0_)private static intremoveBar(CommandSource p_201407_0_, CustomServerBossInfo p_201407_1_)private static intsetColor(CommandSource p_201415_0_, CustomServerBossInfo p_201415_1_, BossInfo.Color p_201415_2_)private static intsetMax(CommandSource p_201394_0_, CustomServerBossInfo p_201394_1_, int p_201394_2_)private static intsetName(CommandSource p_201420_0_, CustomServerBossInfo p_201420_1_, ITextComponent p_201420_2_)private static intsetPlayers(CommandSource p_201405_0_, CustomServerBossInfo p_201405_1_, java.util.Collection<ServerPlayerEntity> p_201405_2_)private static intsetStyle(CommandSource p_201390_0_, CustomServerBossInfo p_201390_1_, BossInfo.Overlay p_201390_2_)private static intsetValue(CommandSource p_201397_0_, CustomServerBossInfo p_201397_1_, int p_201397_2_)private static intsetVisible(CommandSource p_201410_0_, CustomServerBossInfo p_201410_1_, boolean p_201410_2_)
-
-
-
Field Detail
-
ERROR_ALREADY_EXISTS
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_ALREADY_EXISTS
-
ERROR_DOESNT_EXIST
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_DOESNT_EXIST
-
ERROR_NO_PLAYER_CHANGE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_PLAYER_CHANGE
-
ERROR_NO_NAME_CHANGE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_NAME_CHANGE
-
ERROR_NO_COLOR_CHANGE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_COLOR_CHANGE
-
ERROR_NO_STYLE_CHANGE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_STYLE_CHANGE
-
ERROR_NO_VALUE_CHANGE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_VALUE_CHANGE
-
ERROR_NO_MAX_CHANGE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_MAX_CHANGE
-
ERROR_ALREADY_HIDDEN
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ALREADY_HIDDEN
-
ERROR_ALREADY_VISIBLE
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ALREADY_VISIBLE
-
SUGGEST_BOSS_BAR
public static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> SUGGEST_BOSS_BAR
-
-
Method Detail
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_201413_0_)
-
getValue
private static int getValue(CommandSource p_201414_0_, CustomServerBossInfo p_201414_1_)
-
getMax
private static int getMax(CommandSource p_201402_0_, CustomServerBossInfo p_201402_1_)
-
getVisible
private static int getVisible(CommandSource p_201389_0_, CustomServerBossInfo p_201389_1_)
-
getPlayers
private static int getPlayers(CommandSource p_201425_0_, CustomServerBossInfo p_201425_1_)
-
setVisible
private static int setVisible(CommandSource p_201410_0_, CustomServerBossInfo p_201410_1_, boolean p_201410_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setValue
private static int setValue(CommandSource p_201397_0_, CustomServerBossInfo p_201397_1_, int p_201397_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setMax
private static int setMax(CommandSource p_201394_0_, CustomServerBossInfo p_201394_1_, int p_201394_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setColor
private static int setColor(CommandSource p_201415_0_, CustomServerBossInfo p_201415_1_, BossInfo.Color p_201415_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setStyle
private static int setStyle(CommandSource p_201390_0_, CustomServerBossInfo p_201390_1_, BossInfo.Overlay p_201390_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setName
private static int setName(CommandSource p_201420_0_, CustomServerBossInfo p_201420_1_, ITextComponent p_201420_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setPlayers
private static int setPlayers(CommandSource p_201405_0_, CustomServerBossInfo p_201405_1_, java.util.Collection<ServerPlayerEntity> p_201405_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listBars
private static int listBars(CommandSource p_201428_0_)
-
createBar
private static int createBar(CommandSource p_201400_0_, ResourceLocation p_201400_1_, ITextComponent p_201400_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
removeBar
private static int removeBar(CommandSource p_201407_0_, CustomServerBossInfo p_201407_1_)
-
getBossBar
public static CustomServerBossInfo getBossBar(com.mojang.brigadier.context.CommandContext<CommandSource> p_201416_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
-