Class TagCommand

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

public class TagCommand extends Object
  • Field Details

    • ERROR_ADD_FAILED

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_ADD_FAILED
    • ERROR_REMOVE_FAILED

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_REMOVE_FAILED
  • Constructor Details

    • TagCommand

      public TagCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher)
    • getTags

      private static Collection<String> getTags(Collection<? extends Entity> entities)
      Gets all tags that are present on at least one of the given entities.
    • addTag

      private static int addTag(CommandSourceStack source, Collection<? extends Entity> entities, String tagName) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • removeTag

      private static int removeTag(CommandSourceStack source, Collection<? extends Entity> entities, String tagName) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listTags

      private static int listTags(CommandSourceStack source, Collection<? extends Entity> entities)