Interface TagRewriter

All Superinterfaces:
MappingDataListener

public interface TagRewriter extends MappingDataListener
  • Method Details

    • removeTags

      void removeTags(String registryKey)
    • removeTag

      void removeTag(RegistryType type, String tagId)
    • renameTag

      void renameTag(RegistryType type, String tagId, String renameTo)
    • addEmptyTag

      void addEmptyTag(RegistryType tagType, String tagId)
      Adds an empty tag (since the client crashes if a checked tag is not registered).
      Parameters:
      tagType - registry tag type
      tagId - tag id
    • addEmptyTags

      void addEmptyTags(RegistryType tagType, String... tagIds)
    • addEntityTag

      void addEntityTag(String tagId, EntityType... entities)
      Adds an entity tag type to be filled with the given entity type ids.
      Parameters:
      tagId - registry tag type
      entities - mapped entity types
    • addTag

      void addTag(RegistryType tagType, String tagId, int... unmappedIds)
      Adds a tag type to be filled with the given type ids after being mapped to new ids.
      Parameters:
      tagType - registry tag type
      tagId - tag id
      unmappedIds - unmapped type ids
    • addTagRaw

      void addTagRaw(RegistryType tagType, String tagId, int... ids)
      Adds a tag type to be filled with the given raw type ids.
      Parameters:
      tagType - registry tag type
      tagId - tag id
      ids - raw type ids
    • getNewTags

      @Nullable List<TagData> getNewTags(RegistryType tagType)
    • getOrComputeNewTags

      List<TagData> getOrComputeNewTags(RegistryType tagType)