Package net.minecraft.server.commands
Class BossBarCommands
java.lang.Object
net.minecraft.server.commands.BossBarCommands
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcreateBar(CommandSourceStack pSource, ResourceLocation pId, Component pDisplayName) static CustomBossEventgetBossBar(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pSource) private static intgetMax(CommandSourceStack pSource, CustomBossEvent pBossbar) private static intgetPlayers(CommandSourceStack pSource, CustomBossEvent pBossbar) private static intgetValue(CommandSourceStack pSource, CustomBossEvent pBossbar) private static intgetVisible(CommandSourceStack pSource, CustomBossEvent pBossbar) private static intlistBars(CommandSourceStack pSource) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher, CommandBuildContext pContext) private static intremoveBar(CommandSourceStack pSource, CustomBossEvent pBossbar) private static intsetColor(CommandSourceStack pSource, CustomBossEvent pBossbar, BossEvent.BossBarColor pColor) private static intsetMax(CommandSourceStack pSource, CustomBossEvent pBossbar, int pMax) private static intsetName(CommandSourceStack pSource, CustomBossEvent pBossbar, Component pName) private static intsetPlayers(CommandSourceStack pSource, CustomBossEvent pBossbar, Collection<ServerPlayer> pPlayers) private static intsetStyle(CommandSourceStack pSource, CustomBossEvent pBossbar, BossEvent.BossBarOverlay pStyle) private static intsetValue(CommandSourceStack pSource, CustomBossEvent pBossbar, int pValue) private static intsetVisible(CommandSourceStack pSource, CustomBossEvent pBossbar, boolean pVisible)
-
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> pDispatcher, CommandBuildContext pContext) -
getValue
-
getMax
-
getVisible
-
getPlayers
-
setVisible
private static int setVisible(CommandSourceStack pSource, CustomBossEvent pBossbar, boolean pVisible) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setValue
private static int setValue(CommandSourceStack pSource, CustomBossEvent pBossbar, int pValue) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setMax
private static int setMax(CommandSourceStack pSource, CustomBossEvent pBossbar, int pMax) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setColor
private static int setColor(CommandSourceStack pSource, CustomBossEvent pBossbar, BossEvent.BossBarColor pColor) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setStyle
private static int setStyle(CommandSourceStack pSource, CustomBossEvent pBossbar, BossEvent.BossBarOverlay pStyle) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setName
private static int setName(CommandSourceStack pSource, CustomBossEvent pBossbar, Component pName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setPlayers
private static int setPlayers(CommandSourceStack pSource, CustomBossEvent pBossbar, Collection<ServerPlayer> pPlayers) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listBars
-
createBar
private static int createBar(CommandSourceStack pSource, ResourceLocation pId, Component pDisplayName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
removeBar
-
getBossBar
public static CustomBossEvent getBossBar(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-