    001    package net.minecraft.src;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005    import net.minecraft.server.MinecraftServer;
    006
    007    public class ConvertingProgressUpdate implements IProgressUpdate
    008    {
    009        private long field_82309_b;
    010
    011        final MinecraftServer field_82310_a;
    012
    013        public ConvertingProgressUpdate(MinecraftServer par1MinecraftServer)
    014        {
    015            this.field_82310_a = par1MinecraftServer;
    016            this.field_82309_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_82309_b >= 1000L)
    030            {
    031                this.field_82309_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    }