    001package net.minecraft.util;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005
    006public interface IProgressUpdate
    007{
    008    /**
    009     * "Saving level", or the loading,or downloading equivelent
    010     */
    011    void displayProgressMessage(String s);
    012
    013    @SideOnly(Side.CLIENT)
    014
    015    /**
    016     * this string, followed by "working..." and then the "% complete" are the 3 lines shown. This resets progress to 0,
    017     * and the WorkingString to "working...".
    018     */
    019    void resetProgressAndMessage(String s);
    020
    021    /**
    022     * This is called with "Working..." by resetProgressAndMessage
    023     */
    024    void resetProgresAndWorkingMessage(String s);
    025
    026    /**
    027     * Updates the progress bar on the loading screen to the specified amount. Args: loadProgress
    028     */
    029    void setLoadingProgress(int i);
    030
    031    @SideOnly(Side.CLIENT)
    032
    033    /**
    034     * called when there is no more progress to be had, both on completion and failure
    035     */
    036    void onNoMoreProgress();
    037}