From 887d55d896af9ed36081d8d2fd68dbc1a9cc39d8 Mon Sep 17 00:00:00 2001 From: Cassian Godsted Date: Thu, 12 Feb 2026 15:09:04 -0500 Subject: [PATCH] Update Identifier usage to modern practices --- tags/guide/identifiers.ytag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tags/guide/identifiers.ytag b/tags/guide/identifiers.ytag index 8f36c728..bb24ae8b 100644 --- a/tags/guide/identifiers.ytag +++ b/tags/guide/identifiers.ytag @@ -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: