Package net.minecraft.server.command
Class TagCommand
java.lang.Object
net.minecraft.server.command.TagCommand
public class TagCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeADD_FAILED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeREMOVE_FAILED_EXCEPTION -
Constructor Summary
Constructors Constructor Description TagCommand() -
Method Summary
Modifier and Type Method Description private static intexecuteAdd(ServerCommandSource source, Collection<? extends Entity> targets, String tag)private static intexecuteList(ServerCommandSource source, Collection<? extends Entity> targets)private static intexecuteRemove(ServerCommandSource source, Collection<? extends Entity> targets, String tag)private static Collection<String>getTags(Collection<? extends Entity> entities)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
ADD_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ADD_FAILED_EXCEPTION -
REMOVE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType REMOVE_FAILED_EXCEPTION
-
-
Constructor Details
-
TagCommand
public TagCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
getTags
-
executeAdd
private static int executeAdd(ServerCommandSource source, Collection<? extends Entity> targets, String tag) -
executeRemove
private static int executeRemove(ServerCommandSource source, Collection<? extends Entity> targets, String tag) -
executeList
-