package net.minecraft.server.integrated;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.util.concurrent.Callable;
import net.minecraft.client.ClientBrandRetriever;
import net.minecraft.client.Minecraft;
@SideOnly(Side.CLIENT)
class CallableIsModded implements Callable
{
/** Reference to the IntegratedServer object. */
final IntegratedServer theIntegratedServer;
CallableIsModded(IntegratedServer par1IntegratedServer)
{
this.theIntegratedServer = par1IntegratedServer;
}
/**
* Gets if your Minecraft is Modded.
*/
public String getMinecraftIsModded()
{
String var1 = ClientBrandRetriever.getClientModName();
if (!var1.equals("vanilla"))
{
return "Definitely; Client brand changed to \'" + var1 + "\'";
}
else
{
var1 = this.theIntegratedServer.getServerModName();
return !var1.equals("vanilla") ? "Definitely; Server brand changed to \'" + var1 + "\'" : (Minecraft.class.getSigners() == null ? "Very likely; Jar signature invalidated" : "Probably not. Jar signature remains and both client + server brands are untouched.");
}
}
public Object call()
{
return this.getMinecraftIsModded();
}
}