Clarify purpose of NeoForge.EVENT_BUS.register in ExampleMod class (#32)
This commit is contained in:
parent
612169c4a0
commit
67a4575730
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue