Skip to content

Commit 0055dba

Browse files
authored
Update Identifier usage to modern practices (#212)
1 parent 57106dc commit 0055dba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tags/guide/identifiers.ytag

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ type: text
77
In your main mod class or a helper class:
88
(in this example, `YourMod`)
99
```java
10-
public static final String MODID = "yourmod";
10+
public static final String MOD_ID = "yourmod";
1111

1212
// ...
1313

1414
public static Identifier id(String path) {
15-
return new Identifier(YourMod.MODID, path);
15+
return Identifier.fromNamespaceAndPath(YourMod.MOD_ID, path);
1616
}
1717
```
1818
To use it:

0 commit comments

Comments
 (0)