2016-11-17 05:45:04 +01:00
|
|
|
package com.minelittlepony;
|
2015-08-02 00:36:33 +02:00
|
|
|
|
2018-05-13 18:43:49 +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;
|
2018-05-13 18:43:49 +02:00
|
|
|
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) {
|
2018-04-27 13:49:33 +02:00
|
|
|
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) {
|
2018-04-27 13:49:33 +02:00
|
|
|
mlp.postInit(minecraft);
|
2016-01-26 09:16:11 +01:00
|
|
|
}
|
|
|
|
|
2018-05-13 18:43:49 +02:00
|
|
|
@Override
|
|
|
|
public Class<? extends ConfigPanel> getConfigPanelClass() {
|
|
|
|
return PonySettingsPanel.class;
|
|
|
|
}
|
2015-08-02 00:36:33 +02:00
|
|
|
}
|