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.SimpleCommandExceptionType
ADD_FAILED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
REMOVE_FAILED_EXCEPTION
-
Constructor Summary
Constructors Constructor Description TagCommand()
-
Method Summary
Modifier and Type Method Description private static int
executeAdd(ServerCommandSource source, Collection<? extends Entity> targets, String tag)
private static int
executeList(ServerCommandSource source, Collection<? extends Entity> targets)
private static int
executeRemove(ServerCommandSource source, Collection<? extends Entity> targets, String tag)
private static Collection<String>
getTags(Collection<? extends Entity> entities)
static void
register(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
-