Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tags/guide/identifiers.ytag
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ type: text
In your main mod class or a helper class:
(in this example, `YourMod`)
```java
public static final String MODID = "yourmod";
public static final String MOD_ID = "yourmod";

// ...

public static Identifier id(String path) {
return new Identifier(YourMod.MODID, path);
return Identifier.fromNamespaceAndPath(YourMod.MOD_ID, path);
}
```
To use it:
Expand Down