Package com.forgeessentials.core.preloader

Source Code of com.forgeessentials.core.preloader.FEModContainer

package com.forgeessentials.core.preloader;

import java.util.Arrays;

import com.google.common.eventbus.EventBus;

import cpw.mods.fml.common.DummyModContainer;
import cpw.mods.fml.common.LoadController;
import cpw.mods.fml.common.ModMetadata;

// Kindly do not reference any FE classes outside the coremod package in this class.

public class FEModContainer extends DummyModContainer {
    public static final String version = "%VERSION%";

    public boolean mod;

    public FEModContainer()
    {
        super(new ModMetadata());
        /* ModMetadata is the same as mcmod.info */
        ModMetadata myMeta = super.getMetadata();
        myMeta.authorList = Arrays.asList(new String[]
                { "See the ForgeEssentials author list." });
        myMeta.description = "Does needed setup for ForgeEssentials.";
        myMeta.modId = "FEPreLoader";
        myMeta.version = version;
        myMeta.name = "Forge Essentials|PreLoader";
        myMeta.url = "";
        myMeta.parent = "ForgeEssentials";
    }

    @Override
    public boolean registerBus(EventBus bus, LoadController controller)
    {
        bus.register(this);
        return true;
    }
}
TOP

Related Classes of com.forgeessentials.core.preloader.FEModContainer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.