We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57106dc commit 0055dbaCopy full SHA for 0055dba
tags/guide/identifiers.ytag
@@ -7,12 +7,12 @@ type: text
7
In your main mod class or a helper class:
8
(in this example, `YourMod`)
9
```java
10
-public static final String MODID = "yourmod";
+public static final String MOD_ID = "yourmod";
11
12
// ...
13
14
public static Identifier id(String path) {
15
- return new Identifier(YourMod.MODID, path);
+ return Identifier.fromNamespaceAndPath(YourMod.MOD_ID, path);
16
}
17
```
18
To use it:
0 commit comments