Class PostEffectCommand
java.lang.Object
net.minecraft.server.commands.PostEffectCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final CommandResponseTracker.MessagesWithArg<ServerPlayer, Identifier> private static final CommandResponseTracker.Messages<ServerPlayer> private static final CommandResponseTracker.MessagesWithArg<ServerPlayer, Identifier> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intaddPostEffect(CommandSourceStack source, Collection<ServerPlayer> players, Identifier posteffect) private static intclearPostEffect(CommandSourceStack source, Collection<ServerPlayer> players) private static intlistPostEffects(CommandSourceStack source, ServerPlayer player) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) private static intremovePostEffect(CommandSourceStack source, Collection<ServerPlayer> players, Identifier posteffect)
-
Field Details
-
ERROR_ADD_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ADD_FAILED -
ERROR_CLEAR_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_CLEAR_FAILED -
ERROR_REMOVE_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_REMOVE_FAILED -
RESPONSE_ADD
-
RESPONSE_CLEAR
-
RESPONSE_REMOVE
private static final CommandResponseTracker.MessagesWithArg<ServerPlayer, Identifier> RESPONSE_REMOVE
-
-
Constructor Details
-
PostEffectCommand
public PostEffectCommand()
-
-
Method Details
-
register
-
addPostEffect
private static int addPostEffect(CommandSourceStack source, Collection<ServerPlayer> players, Identifier posteffect) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
clearPostEffect
private static int clearPostEffect(CommandSourceStack source, Collection<ServerPlayer> players) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listPostEffects
-
removePostEffect
private static int removePostEffect(CommandSourceStack source, Collection<ServerPlayer> players, Identifier posteffect) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-