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_92019_b; final MinecraftServer field_92020_a; public ConvertingProgressUpdate(MinecraftServer par1MinecraftServer) { this.field_92020_a = par1MinecraftServer; this.field_92019_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_92019_b >= 1000L) { this.field_92019_b = System.currentTimeMillis(); MinecraftServer.logger.info("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) {} }