Clarify purpose of NeoForge.EVENT_BUS.register in ExampleMod class (#32)

This commit is contained in:
PixelGameWizard 2024-01-22 20:00:34 -05:00 committed by GitHub
parent 612169c4a0
commit 67a4575730
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,9 @@ public class ExampleMod
// Register the Deferred Register to the mod event bus so tabs get registered
CREATIVE_MODE_TABS.register(modEventBus);
// Register ourselves for server and other game events we are interested in
// Register ourselves for server and other game events we are interested in.
// Note that this is necessary if and only if we want *this* class (ExampleMod) to respond directly to events.
// Do not add this line if there are no @SubscribeEvent-annotated functions in this class, like onServerStarting() below.
NeoForge.EVENT_BUS.register(this);
// Register the item to a creative tab