2016-11-17 05:45:04 +01:00
|
|
|
package com.minelittlepony;
|
2015-08-02 00:36:33 +02:00
|
|
|
|
2018-07-27 14:27:32 +02:00
|
|
|
import com.minelittlepony.gui.GuiPonySettings;
|
2018-05-13 18:43:49 +02:00
|
|
|
import com.mumfrey.liteloader.Configurable;
|
2016-01-26 09:16:11 +01:00
|
|
|
import com.mumfrey.liteloader.InitCompleteListener;
|
2018-06-20 23:21:21 +02:00
|
|
|
import com.mumfrey.liteloader.Tickable;
|
2016-01-26 09:16:11 +01:00
|
|
|
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-20 23:21:21 +02:00
|
|
|
public class LiteModMineLittlePony implements InitCompleteListener, Tickable, 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-06-20 23:21:21 +02:00
|
|
|
@Override
|
|
|
|
public void onTick(Minecraft minecraft, float partialTicks, boolean inGame, boolean clock) {
|
|
|
|
mlp.onTick(minecraft, inGame);
|
|
|
|
}
|
|
|
|
|
2018-05-13 18:43:49 +02:00
|
|
|
@Override
|
|
|
|
public Class<? extends ConfigPanel> getConfigPanelClass() {
|
2018-07-27 14:27:32 +02:00
|
|
|
return GuiPonySettings.class;
|
2018-05-13 18:43:49 +02:00
|
|
|
}
|
2015-08-02 00:36:33 +02:00
|
|
|
}
|