    001package net.minecraft.client;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005import java.util.concurrent.Callable;
    006
    007@SideOnly(Side.CLIENT)
    008public class CallableUpdatingScreenName implements Callable
    009{
    010    final Minecraft theMinecraft;
    011
    012    public CallableUpdatingScreenName(Minecraft par1Minecraft)
    013    {
    014        this.theMinecraft = par1Minecraft;
    015    }
    016
    017    public String callUpdatingScreenName()
    018    {
    019        return this.theMinecraft.currentScreen.getClass().getCanonicalName();
    020    }
    021
    022    public Object call()
    023    {
    024        return this.callUpdatingScreenName();
    025    }
    026}