mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-17 06:13:41 +01:00
44 lines
1.4 KiB
Java
44 lines
1.4 KiB
Java
|
package com.simibubi.create;
|
||
|
|
||
|
import com.simibubi.create.modules.schematics.ClientSchematicLoader;
|
||
|
import com.simibubi.create.modules.schematics.client.SchematicAndQuillHandler;
|
||
|
import com.simibubi.create.modules.schematics.client.SchematicHandler;
|
||
|
import com.simibubi.create.modules.schematics.client.SchematicHologram;
|
||
|
|
||
|
import net.minecraftforge.api.distmarker.Dist;
|
||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||
|
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
||
|
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;
|
||
|
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
||
|
|
||
|
@EventBusSubscriber(value = Dist.CLIENT, bus = Bus.MOD)
|
||
|
public class CreateClient {
|
||
|
|
||
|
public static ClientSchematicLoader schematicSender;
|
||
|
public static SchematicHandler schematicHandler;
|
||
|
public static SchematicHologram schematicHologram;
|
||
|
public static SchematicAndQuillHandler schematicAndQuillHandler;
|
||
|
|
||
|
@SubscribeEvent
|
||
|
public static void clientInit(FMLClientSetupEvent event) {
|
||
|
schematicSender = new ClientSchematicLoader();
|
||
|
schematicHandler = new SchematicHandler();
|
||
|
schematicHologram = new SchematicHologram();
|
||
|
|
||
|
ScrollFixer.init();
|
||
|
|
||
|
AllKeys.register();
|
||
|
AllContainers.registerScreenFactories();
|
||
|
AllTileEntities.registerRenderers();
|
||
|
AllItems.registerColorHandlers();
|
||
|
}
|
||
|
|
||
|
public static void gameTick() {
|
||
|
schematicSender.tick();
|
||
|
schematicAndQuillHandler.tick();
|
||
|
schematicHandler.tick();
|
||
|
schematicHologram.tick();
|
||
|
}
|
||
|
|
||
|
}
|