Class InteractiveMCIdentifier

java.lang.Object
net.timtaran.interactivemc.util.InteractiveMCIdentifier

public class InteractiveMCIdentifier extends Object
Utils for generating mod-specific identifiers.
  • Constructor Details

    • InteractiveMCIdentifier

      public InteractiveMCIdentifier()
  • Method Details

    • getTranslationKey

      public static String getTranslationKey(String category, String path)
      Generates a translation key for the given category and path. The returned key is in the format "category.mod_id.path".
      Parameters:
      category - The category of the translation key.
      path - The path of the translation key.
      Returns:
      The generated translation key.
    • get

      public static net.minecraft.resources.ResourceLocation get(String path)
      Returns a ResourceLocation with the given path and mod_id namespace.
      Parameters:
      path - The path of the resource location.
      Returns:
      The generated resource location.