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

52 lines
1.3 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.GuiPonySettings;
import com.mumfrey.liteloader.Configurable;
2016-01-26 09:16:11 +01:00
import com.mumfrey.liteloader.InitCompleteListener;
import com.mumfrey.liteloader.Tickable;
2016-01-26 09:16:11 +01:00
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;
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) {
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 void onTick(Minecraft minecraft, float partialTicks, boolean inGame, boolean clock) {
mlp.onTick(minecraft, inGame);
}
@Override
public Class<? extends ConfigPanel> getConfigPanelClass() {
return GuiPonySettings.class;
}
2015-08-02 00:36:33 +02:00
}