aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/example/ExampleMod.java
blob: c43c2c5b07b12cc3dba7eb5fe9b1f390cbdd6e1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.example;

import com.example.commands.Commands;
import net.minecraft.init.Blocks;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

@Mod(modid = "examplemod", version = "1.0.0")
public class ExampleMod {
    public Commands commands;

    @Mod.EventHandler
    public void init(FMLInitializationEvent event) {
        System.out.println("Dirt: " + Blocks.dirt.getUnlocalizedName());
    }

    @Mod.EventHandler
    public void preinit(FMLPreInitializationEvent event) {
        this.commands = new Commands();
    }
}