Package net.timtaran.interactivemc.util
Class InteractiveMCIdentifier
java.lang.Object
net.timtaran.interactivemc.util.InteractiveMCIdentifier
Utils for generating mod-specific identifiers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.resources.ResourceLocationReturns aResourceLocationwith the given path and mod_id namespace.static net.minecraft.network.chat.ComponentgetTranslation(String path) static StringgetTranslationKey(String path) Generates a translation key for the given category and path.
-
Constructor Details
-
InteractiveMCIdentifier
public InteractiveMCIdentifier()
-
-
Method Details
-
getTranslationKey
Generates a translation key for the given category and path. The returned key is in the format "mod_id.path".- Parameters:
path- The path of the translation key.- Returns:
- The generated translation key.
-
getTranslation
-
get
Returns aResourceLocationwith the given path and mod_id namespace.- Parameters:
path- The path of the resource location.- Returns:
- The generated resource location.
-