Class BossBarCommand

java.lang.Object
net.minecraft.command.impl.BossBarCommand

public class BossBarCommand extends Object
  • Field Details

    • 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
  • Constructor Details

    • BossBarCommand

      public BossBarCommand()
  • Method Details

    • 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_, 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