    001    package net.minecraft.src;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005    import java.util.concurrent.Callable;
    006    import net.minecraft.client.ClientBrandRetriever;
    007    import net.minecraft.client.Minecraft;
    008
    009    @SideOnly(Side.CLIENT)
    010    public class CallableModded implements Callable
    011    {
    012        /** Reference to the Minecraft object. */
    013        final Minecraft mc;
    014
    015        public CallableModded(Minecraft par1Minecraft)
    016        {
    017            this.mc = par1Minecraft;
    018        }
    019
    020        /**
    021         * Returns "Definitely" if the brand is not vanilla, "Very likely" if there are no signers for the Minecraft class,
    022         * otherwise "Probably not".
    023         */
    024        public String getModded()
    025        {
    026            String var1 = ClientBrandRetriever.getClientModName();
    027            return !var1.equals("vanilla") ? "Definitely; \'" + var1 + "\'" : (Minecraft.class.getSigners() == null ? "Very likely" : "Probably not");
    028        }
    029
    030        public Object call()
    031        {
    032            return this.getModded();
    033        }
    034    }