Skip to content

Commit

Permalink
Add id() method
Browse files Browse the repository at this point in the history
  • Loading branch information
JuiceyBeans committed Mar 1, 2025
1 parent feaee4d commit b564f9e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/com/example/examplemod/ExampleMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ private void clientSetup(final FMLClientSetupEvent event) {
LOGGER.info("Hey, we're on Minecraft version {}!", Minecraft.getInstance().getLaunchedVersion());
}

/**
* Create a ResourceLocation in the format "modid:path"
*
* @param path
* @return ResourceLocation with the namespace of your mod
*/
public static ResourceLocation id(String path) {
return new ResourceLocation(MOD_ID, path);
}

/**
* Create a material manager for your mod using GT's API.
* You MUST have this if you have custom materials.
Expand Down

0 comments on commit b564f9e

Please sign in to comment.