Search in sources :

Example 1 with ChunkData

use of com.oitsjustjose.geolosys.world.ChunkData in project Geolosys by oitsjustjose.

the class Geolosys method preInit.

@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    LOGGER = event.getModLog();
    MinecraftForge.EVENT_BUS.register(new Config(event.getSuggestedConfigurationFile()));
    configOres = getOresConfig(event.getModConfigurationDirectory());
    clientRegistry = new ClientRegistry();
    MinecraftForge.EVENT_BUS.register(clientRegistry);
    chunkOreGen = new ChunkData();
    userStates = new ArrayList<>();
    ORE = new BlockOre();
    ORE_VANILLA = new BlockOreVanilla();
    ORE_SAMPLE = new BlockSample();
    ORE_SAMPLE_VANILLA = new BlockSampleVanilla();
    CLUSTER = new ItemCluster();
    ALMANAC = new ItemFieldManual();
    if (Config.getInstance().enableIngots) {
        INGOT = new ItemIngot();
    }
    if (Config.getInstance().enableCoals) {
        COAL = new ItemCoal();
    }
    if (Config.getInstance().enableProPick) {
        PRO_PICK = new ItemProPick();
    }
    registerGeolosysOreGen();
    registerVanillaOreGen();
}
Also used : ChunkData(com.oitsjustjose.geolosys.world.ChunkData) BlockOre(com.oitsjustjose.geolosys.blocks.BlockOre) BlockSample(com.oitsjustjose.geolosys.blocks.BlockSample) BlockOreVanilla(com.oitsjustjose.geolosys.blocks.BlockOreVanilla) BlockSampleVanilla(com.oitsjustjose.geolosys.blocks.BlockSampleVanilla) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Aggregations

BlockOre (com.oitsjustjose.geolosys.blocks.BlockOre)1 BlockOreVanilla (com.oitsjustjose.geolosys.blocks.BlockOreVanilla)1 BlockSample (com.oitsjustjose.geolosys.blocks.BlockSample)1 BlockSampleVanilla (com.oitsjustjose.geolosys.blocks.BlockSampleVanilla)1 ChunkData (com.oitsjustjose.geolosys.world.ChunkData)1 EventHandler (net.minecraftforge.fml.common.Mod.EventHandler)1