public interface TagRewriter extends MappingDataListener
Modifier and Type | Method and Description |
---|---|
void |
addEmptyTag(RegistryType tagType,
java.lang.String tagId)
Adds an empty tag (since the client crashes if a checked tag is not registered).
|
void |
addEmptyTags(RegistryType tagType,
java.lang.String... tagIds) |
void |
addEntityTag(java.lang.String tagId,
EntityType... entities)
Adds an entity tag type to be filled with the given entity type ids.
|
void |
addTag(RegistryType tagType,
java.lang.String tagId,
int... unmappedIds)
Adds a tag type to be filled with the given type ids after being mapped to new ids.
|
void |
addTagRaw(RegistryType tagType,
java.lang.String tagId,
int... ids)
Adds a tag type to be filled with the given raw type ids.
|
@Nullable java.util.List<TagData> |
getNewTags(RegistryType tagType) |
java.util.List<TagData> |
getOrComputeNewTags(RegistryType tagType) |
void |
removeTags(java.lang.String registryKey) |
void |
renameTag(RegistryType type,
java.lang.String registryKey,
java.lang.String renameTo) |
onMappingDataLoaded
void removeTags(java.lang.String registryKey)
void renameTag(RegistryType type, java.lang.String registryKey, java.lang.String renameTo)
void addEmptyTag(RegistryType tagType, java.lang.String tagId)
tagType
- registry tag typetagId
- tag idvoid addEmptyTags(RegistryType tagType, java.lang.String... tagIds)
void addEntityTag(java.lang.String tagId, EntityType... entities)
tagId
- registry tag typeentities
- mapped entity typesvoid addTag(RegistryType tagType, java.lang.String tagId, int... unmappedIds)
tagType
- registry tag typetagId
- tag idunmappedIds
- unmapped type idsvoid addTagRaw(RegistryType tagType, java.lang.String tagId, int... ids)
tagType
- registry tag typetagId
- tag idids
- raw type ids@Nullable java.util.List<TagData> getNewTags(RegistryType tagType)
java.util.List<TagData> getOrComputeNewTags(RegistryType tagType)