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

import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.init.Blocks;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;

@Mod(modid = "examplemod", useMetadata=true)
public class ExampleMod {
    @Mod.EventHandler
    public void init(FMLInitializationEvent event) {
        System.out.println("Dirt: " + Blocks.dirt.getUnlocalizedName());
		// Below is a demonstration of an access-transformed class access.
        System.out.println("Color State: " + new GlStateManager.Color());
    }
}