1313*/
1414
1515/**
16- * Step 1: Create EventHandler class
16+ * Step 1: Create TutEventHandler class
1717 */
18+ /*
19+ IMPORTANT!!! Do NOT name your EventHandler 'EventHandler' - that's already the name of a Forge class.
20+ Also, do NOT edit any of the Forge classes. You need to create a new class to handle events.
21+ */
1822
19- public class EventHandler
23+ public class TutEventHandler
2024{
2125}
2226
@@ -28,18 +32,18 @@ public class EventHandler
2832@ EventHandler
2933public void load (FMLInitializationEvent event )
3034{
31- MinecraftForge .EVENT_BUS .register (new EventHandler ());
35+ MinecraftForge .EVENT_BUS .register (new TutEventHandler ());
3236}
3337
3438// You're finished! That was easy But it doesn't do anything right now,
3539// so on to step 3.
3640
3741/**
3842 * Step 3: Look through MinecraftForge event types for ones you want to use
39- * and add them to your EventHandler
43+ * and add them to your TutEventHandler
4044 */
4145
42- // In your EventHandler class - the name of the method doesn't matter
46+ // In your TutEventHandler class - the name of the method doesn't matter
4347// Only the Event type parameter is what's important (see below for explanations of some types)
4448@ ForgeSubscribe
4549public void onLivingUpdateEvent (LivingUpdateEvent event )
@@ -110,7 +114,7 @@ public void onPlayerStoppedUsing(ItemStack itemstack, World world, EntityPlayer
110114}
111115
112116/**
113- * Step 5: Adding events to your EventHandler
117+ * Step 5: Adding events to your TutEventHandler
114118 */
115119/* A template for whatever event method you want to make. Name it whatever you want,
116120 but use the correct Event Type from above. Event variables are accessed by using
0 commit comments