mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 15:57:55 +00:00
28 lines
823 B
Java
28 lines
823 B
Java
package com.glodblock.github.client;
|
|
|
|
import net.minecraftforge.client.event.TextureStitchEvent;
|
|
import net.minecraftforge.common.MinecraftForge;
|
|
|
|
import com.glodblock.github.client.textures.FCPartsTexture;
|
|
|
|
import cpw.mods.fml.common.FMLCommonHandler;
|
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
|
|
|
public class ClientHelper {
|
|
|
|
@SubscribeEvent
|
|
public void updateTextureSheet(final TextureStitchEvent.Pre ev) {
|
|
if (ev.map.getTextureType() == 0) {
|
|
for (final FCPartsTexture cb : FCPartsTexture.values()) {
|
|
cb.registerIcon(ev.map);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void register() {
|
|
ClientHelper handler = new ClientHelper();
|
|
MinecraftForge.EVENT_BUS.register(handler);
|
|
FMLCommonHandler.instance().bus().register(handler);
|
|
}
|
|
}
|