Skip to content

Commit b564f9e

Browse files
committed
Add id() method
1 parent feaee4d commit b564f9e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/com/example/examplemod/ExampleMod.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ private void clientSetup(final FMLClientSetupEvent event) {
6060
LOGGER.info("Hey, we're on Minecraft version {}!", Minecraft.getInstance().getLaunchedVersion());
6161
}
6262

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+
6373
/**
6474
* Create a material manager for your mod using GT's API.
6575
* You MUST have this if you have custom materials.

0 commit comments

Comments
 (0)