Last active
July 15, 2025 22:43
-
-
Save TelepathicGrunt/d7508db22bffec0e81dd5ab055fb70e0 to your computer and use it in GitHub Desktop.
Deferred NeoForge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Mod(Mod.MODID) | |
public class Mod { | |
public static final String MODID = "mod"; | |
public Mod(IEventBus modEventBus, ModContainer modContainer) { | |
ModItems.ITEMS.register(modEventBus); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ModItems { | |
public static final DeferredRegister.Items ITEMS = DeferredRegister.createItems(MODID); | |
public static final DeferredItem<Item> ITEM_A = ITEMS.registerItem("item_a", Item::new); | |
public static final DeferredItem<Item> ITEM_B = ITEMS.registerItem("item_b", Item::new); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment