    001package net.minecraft.server;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005import net.minecraft.util.IProgressUpdate;
    006
    007public class ConvertingProgressUpdate implements IProgressUpdate
    008{
    009    private long field_92029_b;
    010
    011    final MinecraftServer field_92030_a;
    012
    013    public ConvertingProgressUpdate(MinecraftServer par1MinecraftServer)
    014    {
    015        this.field_92030_a = par1MinecraftServer;
    016        this.field_92029_b = System.currentTimeMillis();
    017    }
    018
    019    /**
    020     * "Saving level", or the loading,or downloading equivelent
    021     */
    022    public void displayProgressMessage(String par1Str) {}
    023
    024    /**
    025     * Updates the progress bar on the loading screen to the specified amount. Args: loadProgress
    026     */
    027    public void setLoadingProgress(int par1)
    028    {
    029        if (System.currentTimeMillis() - this.field_92029_b >= 1000L)
    030        {
    031            this.field_92029_b = System.currentTimeMillis();
    032            MinecraftServer.logger.info("Converting... " + par1 + "%");
    033        }
    034    }
    035
    036    @SideOnly(Side.CLIENT)
    037
    038    /**
    039     * this string, followed by "working..." and then the "% complete" are the 3 lines shown. This resets progress to 0,
    040     * and the WorkingString to "working...".
    041     */
    042    public void resetProgressAndMessage(String par1Str) {}
    043
    044    @SideOnly(Side.CLIENT)
    045
    046    /**
    047     * called when there is no more progress to be had, both on completion and failure
    048     */
    049    public void onNoMoreProgress() {}
    050
    051    /**
    052     * This is called with "Working..." by resetProgressAndMessage
    053     */
    054    public void resetProgresAndWorkingMessage(String par1Str) {}
    055}