package com.yolp900.itsjustacharm.common.events;
import com.yolp900.itsjustacharm.client.guis.huds.HudHandler;
import com.yolp900.itsjustacharm.client.particles.ParticleHandler;
import com.yolp900.itsjustacharm.common.avchievemetns.AchievementTrigger;
import com.yolp900.itsjustacharm.common.tooltips.TooltipHandler;
import com.yolp900.itsjustacharm.config.ModConfig;
import net.minecraftforge.common.MinecraftForge;
public class EventHandler {
public static void registerEvents() {
registerEvent(new ModConfig());
registerEvent(new AchievementTrigger());
registerEvent(new TooltipHandler());
registerEvent(new EventConstructionTableConstruction());
registerEvent(new EventAffinityHolderInteract());
registerTerrainGenEvent(new EventTintedTreeGenerator());
registerEvent(new EventBaubleTick());
}
public static void registerClientEvents() {
registerEvent(new ParticleHandler());
registerEvent(new HudHandler());
}
private static void registerEvent(Object eventHandler) {
MinecraftForge.EVENT_BUS.register(eventHandler);
}
private static void registerTerrainGenEvent(Object eventHandler) {
MinecraftForge.TERRAIN_GEN_BUS.register(eventHandler);
}
}