MineLittlePony/src/main/java/com/minelittlepony/LiteModMineLittlePony.java

46 lines
1.1 KiB
Java
Raw Normal View History

2016-11-17 05:45:04 +01:00
package com.minelittlepony;
2015-08-02 00:36:33 +02:00
import com.minelittlepony.gui.PonySettingsPanel;
import com.mumfrey.liteloader.Configurable;
2016-01-26 09:16:11 +01:00
import com.mumfrey.liteloader.InitCompleteListener;
import com.mumfrey.liteloader.core.LiteLoader;
import com.mumfrey.liteloader.modconfig.ConfigPanel;
2016-01-26 09:16:11 +01:00
import net.minecraft.client.Minecraft;
2016-11-25 05:40:19 +01:00
import java.io.File;
2018-06-10 18:54:50 +02:00
public class LiteModMineLittlePony implements InitCompleteListener, Configurable {
2016-01-26 09:16:11 +01:00
2016-01-26 09:20:39 +01:00
private MineLittlePony mlp;
2016-01-26 09:16:11 +01:00
@Override
public String getName() {
2016-01-26 09:20:39 +01:00
return MineLittlePony.MOD_NAME;
2015-08-02 00:36:33 +02:00
}
@Override
public String getVersion() {
2016-01-26 09:20:39 +01:00
return MineLittlePony.MOD_VERSION;
2015-08-02 00:36:33 +02:00
}
@Override
2016-11-25 05:40:19 +01:00
public void upgradeSettings(String version, File configPath, File oldConfigPath) {
}
2016-01-26 09:16:11 +01:00
@Override
public void init(File configPath) {
mlp = new MineLittlePony();
2015-08-02 00:36:33 +02:00
}
2016-01-26 09:16:11 +01:00
@Override
public void onInitCompleted(Minecraft minecraft, LiteLoader loader) {
mlp.postInit(minecraft);
2016-01-26 09:16:11 +01:00
}
@Override
public Class<? extends ConfigPanel> getConfigPanelClass() {
return PonySettingsPanel.class;
}
2015-08-02 00:36:33 +02:00
}