Class BossBarCommands

java.lang.Object
net.minecraft.server.commands.BossBarCommands

public class BossBarCommands 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<CommandSourceStack> SUGGEST_BOSS_BAR
  • Constructor Details

    • BossBarCommands

      public BossBarCommands()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_136583_)
    • getValue

      private static int getValue(CommandSourceStack p_136596_, CustomBossEvent p_136597_)
    • getMax

      private static int getMax(CommandSourceStack p_136629_, CustomBossEvent p_136630_)
    • getVisible

      private static int getVisible(CommandSourceStack p_136640_, CustomBossEvent p_136641_)
    • getPlayers

      private static int getPlayers(CommandSourceStack p_136645_, CustomBossEvent p_136646_)
    • setVisible

      private static int setVisible(CommandSourceStack p_136619_, CustomBossEvent p_136620_, boolean p_136621_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setValue

      private static int setValue(CommandSourceStack p_136599_, CustomBossEvent p_136600_, int p_136601_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setMax

      private static int setMax(CommandSourceStack p_136632_, CustomBossEvent p_136633_, int p_136634_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setColor

      private static int setColor(CommandSourceStack p_136603_, CustomBossEvent p_136604_, BossEvent.BossBarColor p_136605_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setStyle

      private static int setStyle(CommandSourceStack p_136607_, CustomBossEvent p_136608_, BossEvent.BossBarOverlay p_136609_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setName

      private static int setName(CommandSourceStack p_136615_, CustomBossEvent p_136616_, Component p_136617_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setPlayers

      private static int setPlayers(CommandSourceStack p_136611_, CustomBossEvent p_136612_, Collection<ServerPlayer> p_136613_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listBars

      private static int listBars(CommandSourceStack p_136590_)
    • createBar

      private static int createBar(CommandSourceStack p_136592_, ResourceLocation p_136593_, Component p_136594_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • removeBar

      private static int removeBar(CommandSourceStack p_136650_, CustomBossEvent p_136651_)
    • getBossBar

      public static CustomBossEvent getBossBar(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_136585_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException