mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-15 06:54:38 +01:00
4a2335672d
- Added config values to toggle the modules of create. - Added config options to disable unstable features in case of a crashloop. - Cleaned up the Encased Fan TileEntity - Changed in-world processing from static lists to item nbt.
56 lines
1.9 KiB
Java
56 lines
1.9 KiB
Java
package com.simibubi.create;
|
|
|
|
import com.simibubi.create.modules.contraptions.receivers.EncasedFanParticleHandler;
|
|
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.eventbus.api.SubscribeEvent;
|
|
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
|
|
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;
|
|
import net.minecraftforge.fml.config.ModConfig;
|
|
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
|
|
|
@EventBusSubscriber(bus = Bus.MOD)
|
|
public class CreateClient {
|
|
|
|
public static ClientSchematicLoader schematicSender;
|
|
public static SchematicHandler schematicHandler;
|
|
public static SchematicHologram schematicHologram;
|
|
public static SchematicAndQuillHandler schematicAndQuillHandler;
|
|
public static EncasedFanParticleHandler fanParticles;
|
|
|
|
public static ModConfig config;
|
|
|
|
@SubscribeEvent
|
|
public static void clientInit(FMLClientSetupEvent event) {
|
|
schematicSender = new ClientSchematicLoader();
|
|
schematicHandler = new SchematicHandler();
|
|
schematicHologram = new SchematicHologram();
|
|
schematicAndQuillHandler = new SchematicAndQuillHandler();
|
|
fanParticles = new EncasedFanParticleHandler();
|
|
|
|
AllKeys.register();
|
|
AllContainers.registerScreenFactories();
|
|
AllTileEntities.registerRenderers();
|
|
AllItems.registerColorHandlers();
|
|
}
|
|
|
|
@SubscribeEvent
|
|
public static void createConfigs(ModConfig.ModConfigEvent event) {
|
|
if (event.getConfig().getSpec() == CreateConfig.specification)
|
|
return;
|
|
|
|
config = event.getConfig();
|
|
}
|
|
|
|
public static void gameTick() {
|
|
schematicSender.tick();
|
|
schematicAndQuillHandler.tick();
|
|
schematicHandler.tick();
|
|
schematicHologram.tick();
|
|
}
|
|
|
|
}
|