We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feaee4d commit b564f9eCopy full SHA for b564f9e
src/main/java/com/example/examplemod/ExampleMod.java
@@ -60,6 +60,16 @@ private void clientSetup(final FMLClientSetupEvent event) {
60
LOGGER.info("Hey, we're on Minecraft version {}!", Minecraft.getInstance().getLaunchedVersion());
61
}
62
63
+ /**
64
+ * Create a ResourceLocation in the format "modid:path"
65
+ *
66
+ * @param path
67
+ * @return ResourceLocation with the namespace of your mod
68
+ */
69
+ public static ResourceLocation id(String path) {
70
+ return new ResourceLocation(MOD_ID, path);
71
+ }
72
+
73
/**
74
* Create a material manager for your mod using GT's API.
75
* You MUST have this if you have custom materials.
0 commit comments