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> p_138837_)
    • getTags

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

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

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

      private static int listTags(CommandSourceStack pSource, Collection<? extends Entity> pEntities)