2021-06-19 07:52:33 +02:00
|
|
|
package com.jozufozu.flywheel;
|
|
|
|
|
|
|
|
import com.jozufozu.flywheel.backend.Backend;
|
|
|
|
import com.jozufozu.flywheel.core.AtlasStitcher;
|
2021-06-23 22:19:03 +02:00
|
|
|
import com.jozufozu.flywheel.core.Contexts;
|
|
|
|
import com.jozufozu.flywheel.core.Materials;
|
2021-07-09 22:39:56 +02:00
|
|
|
import com.jozufozu.flywheel.core.PartialModel;
|
2021-09-05 01:40:40 +02:00
|
|
|
import com.jozufozu.flywheel.light.debug.DebugView;
|
2021-07-09 22:24:26 +02:00
|
|
|
import com.jozufozu.flywheel.vanilla.VanillaInstances;
|
|
|
|
|
2021-06-23 22:19:03 +02:00
|
|
|
import net.minecraftforge.eventbus.api.IEventBus;
|
2021-06-19 07:52:33 +02:00
|
|
|
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
|
|
|
|
2021-06-30 21:43:54 +02:00
|
|
|
public class FlywheelClient {
|
2021-06-19 07:52:33 +02:00
|
|
|
|
|
|
|
public static void clientInit() {
|
|
|
|
|
|
|
|
Backend.init();
|
2021-06-30 21:43:54 +02:00
|
|
|
IEventBus modEventBus = FMLJavaModLoadingContext.get()
|
|
|
|
.getModEventBus();
|
2021-06-23 22:19:03 +02:00
|
|
|
|
|
|
|
modEventBus.addListener(AtlasStitcher.getInstance()::onTextureStitch);
|
|
|
|
|
|
|
|
modEventBus.addListener(Contexts::flwInit);
|
|
|
|
modEventBus.addListener(Materials::flwInit);
|
2021-07-09 22:39:56 +02:00
|
|
|
modEventBus.addListener(PartialModel::onModelRegistry);
|
|
|
|
modEventBus.addListener(PartialModel::onModelBake);
|
2021-07-09 22:24:26 +02:00
|
|
|
|
|
|
|
VanillaInstances.init();
|
2021-06-19 07:52:33 +02:00
|
|
|
}
|
|
|
|
}
|