package net.minecraft.server;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.util.IProgressUpdate;
public class ConvertingProgressUpdate implements IProgressUpdate
{
private long field_96245_b;
/** Reference to the MinecraftServer object. */
final MinecraftServer mcServer;
public ConvertingProgressUpdate(MinecraftServer par1)
{
this.mcServer = par1;
this.field_96245_b = System.currentTimeMillis();
}
/**
* "Saving level", or the loading,or downloading equivelent
*/
public void displayProgressMessage(String par1Str) {}
/**
* Updates the progress bar on the loading screen to the specified amount. Args: loadProgress
*/
public void setLoadingProgress(int par1)
{
if (System.currentTimeMillis() - this.field_96245_b >= 1000L)
{
this.field_96245_b = System.currentTimeMillis();
this.mcServer.getLogAgent().logInfo("Converting... " + par1 + "%");
}
}
@SideOnly(Side.CLIENT)
/**
* this string, followed by "working..." and then the "% complete" are the 3 lines shown. This resets progress to 0,
* and the WorkingString to "working...".
*/
public void resetProgressAndMessage(String par1Str) {}
@SideOnly(Side.CLIENT)
/**
* called when there is no more progress to be had, both on completion and failure
*/
public void onNoMoreProgress() {}
/**
* This is called with "Working..." by resetProgressAndMessage
*/
public void resetProgresAndWorkingMessage(String par1Str) {}
}