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