Skip to content

TagKey convenience methods in TagSupplier.TagBakery #161

@XFactHD

Description

@XFactHD

TagSupplier.TagBakery currently requires the user to manually prefix the tag location given to queue(RL, RL) and queue(RL, Set<RL>) with the tag type folder name. It would be useful to have overloads of those two methods that take a ResourceKey<Registry<T>> and a TagKey<T> instead of the folder-prefixed tag location and then use Registries.elementsDirPath() to add the folder prefix. This would make the tag generator a bit more ergonomic to use, would avoid mistakes if Mojang decides to change folder names again and also ensures that generating tags for non-vanilla registries correctly prefixes the folder with the registry's namespace on NeoForge (I don't know whether Fabric or Quilt have similar prefixing).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions