2018-09-12 06:39:55 +00:00
|
|
|
package com.seodisparate.TurnBasedMinecraft.common;
|
|
|
|
|
2018-09-14 05:14:10 +00:00
|
|
|
import org.apache.logging.log4j.Logger;
|
|
|
|
|
2018-09-17 04:27:13 +00:00
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
import net.minecraftforge.fml.common.FMLCommonHandler;
|
|
|
|
|
2018-09-12 06:39:55 +00:00
|
|
|
public class CommonProxy
|
|
|
|
{
|
2018-09-20 06:15:34 +00:00
|
|
|
public void initialize() {}
|
|
|
|
|
|
|
|
public boolean initializeBattleManager()
|
|
|
|
{
|
|
|
|
if(TurnBasedMinecraftMod.battleManager == null)
|
|
|
|
{
|
|
|
|
TurnBasedMinecraftMod.battleManager = new BattleManager(TurnBasedMinecraftMod.logger);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean cleanupBattleManager ()
|
|
|
|
{
|
|
|
|
if(TurnBasedMinecraftMod.battleManager != null)
|
|
|
|
{
|
|
|
|
TurnBasedMinecraftMod.battleManager.cleanup();
|
|
|
|
TurnBasedMinecraftMod.battleManager = null;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-09-12 06:39:55 +00:00
|
|
|
public void setBattleGuiTime(int timeRemaining) {}
|
|
|
|
|
|
|
|
public void setBattleGuiBattleChanged() {}
|
|
|
|
|
|
|
|
public void setBattleGuiAsGui() {}
|
|
|
|
|
|
|
|
public void battleGuiTurnBegin() {}
|
|
|
|
|
|
|
|
public void battleGuiTurnEnd() {}
|
2018-09-14 03:44:45 +00:00
|
|
|
|
2018-09-18 07:58:01 +00:00
|
|
|
public void battleStarted() {}
|
|
|
|
|
2018-09-14 03:44:45 +00:00
|
|
|
public void battleEnded() {}
|
2018-09-14 05:14:10 +00:00
|
|
|
|
|
|
|
public void postInit() {}
|
|
|
|
|
|
|
|
public void setLogger(Logger logger) {}
|
|
|
|
|
|
|
|
public void playBattleMusic() {}
|
|
|
|
|
|
|
|
public void playSillyMusic() {}
|
|
|
|
|
2018-09-27 07:44:28 +00:00
|
|
|
public void stopMusic(boolean resumeMCSounds) {}
|
2018-09-14 05:14:10 +00:00
|
|
|
|
|
|
|
public void typeEnteredBattle(String type) {}
|
|
|
|
|
2018-09-27 09:09:40 +00:00
|
|
|
public void typeLeftBattle(String type) {}
|
|
|
|
|
2018-09-14 05:14:10 +00:00
|
|
|
public void setConfig(Config config) {}
|
2018-09-17 04:27:13 +00:00
|
|
|
|
|
|
|
public void displayString(String message) {}
|
|
|
|
|
|
|
|
public Entity getEntityByID(int id)
|
|
|
|
{
|
|
|
|
return FMLCommonHandler.instance().getMinecraftServerInstance().getEntityWorld().getEntityByID(id);
|
|
|
|
}
|
2018-09-25 05:55:24 +00:00
|
|
|
|
|
|
|
public boolean isServerRunning()
|
|
|
|
{
|
|
|
|
return TurnBasedMinecraftMod.battleManager != null;
|
|
|
|
}
|
2018-09-12 06:39:55 +00:00
|
|
|
}
|