mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-07 12:56:31 +01:00
fe304041c5
- Better system for moving objects that want to receive light updates - LightProvider interface to better abstract light lookups - All light listeners use GridAlignedBBs - More utility in GridAlignedBB
31 lines
968 B
Java
31 lines
968 B
Java
package com.jozufozu.flywheel;
|
|
|
|
import com.jozufozu.flywheel.backend.Backend;
|
|
import com.jozufozu.flywheel.core.AtlasStitcher;
|
|
import com.jozufozu.flywheel.core.Contexts;
|
|
import com.jozufozu.flywheel.core.Materials;
|
|
import com.jozufozu.flywheel.core.PartialModel;
|
|
import com.jozufozu.flywheel.light.debug.DebugView;
|
|
import com.jozufozu.flywheel.vanilla.VanillaInstances;
|
|
|
|
import net.minecraftforge.eventbus.api.IEventBus;
|
|
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
|
|
|
public class FlywheelClient {
|
|
|
|
public static void clientInit() {
|
|
|
|
Backend.init();
|
|
IEventBus modEventBus = FMLJavaModLoadingContext.get()
|
|
.getModEventBus();
|
|
|
|
modEventBus.addListener(AtlasStitcher.getInstance()::onTextureStitch);
|
|
|
|
modEventBus.addListener(Contexts::flwInit);
|
|
modEventBus.addListener(Materials::flwInit);
|
|
modEventBus.addListener(PartialModel::onModelRegistry);
|
|
modEventBus.addListener(PartialModel::onModelBake);
|
|
|
|
VanillaInstances.init();
|
|
}
|
|
}
|