TurnBasedMinecraftMod/src/main/java/com/seodisparate/TurnBasedMinecraft/common/CommonProxy.java

73 lines
1.8 KiB
Java
Raw Normal View History

2018-09-12 06:39:55 +00:00
package com.seodisparate.TurnBasedMinecraft.common;
import org.apache.logging.log4j.Logger;
import net.minecraft.entity.Entity;
import net.minecraftforge.fml.common.FMLCommonHandler;
2018-09-12 06:39:55 +00:00
public class CommonProxy
{
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-18 07:58:01 +00:00
public void battleStarted() {}
public void battleEnded() {}
public void postInit() {}
public void setLogger(Logger logger) {}
public void playBattleMusic() {}
public void playSillyMusic() {}
public void stopMusic(boolean resumeMCSounds) {}
public void typeEnteredBattle(String type) {}
public void setConfig(Config config) {}
public void displayString(String message) {}
public Entity getEntityByID(int id)
{
return FMLCommonHandler.instance().getMinecraftServerInstance().getEntityWorld().getEntityByID(id);
}
public boolean isServerRunning()
{
return TurnBasedMinecraftMod.battleManager != null;
}
2018-09-12 06:39:55 +00:00
}