46 lines
1.3 KiB
Java
46 lines
1.3 KiB
Java
package com.pahimar.ee3.lib;
|
|
|
|
import com.google.common.base.Throwables;
|
|
|
|
import java.io.InputStream;
|
|
import java.util.Properties;
|
|
|
|
/**
|
|
* Equivalent-Exchange-3
|
|
* <p/>
|
|
* Reference
|
|
*
|
|
* @author pahimar
|
|
*/
|
|
public class Reference
|
|
{
|
|
static
|
|
{
|
|
Properties prop = new Properties();
|
|
|
|
try
|
|
{
|
|
InputStream stream = Reference.class.getClassLoader().getResourceAsStream("version.properties");
|
|
prop.load(stream);
|
|
stream.close();
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
Throwables.propagate(e); // just throw it...
|
|
}
|
|
|
|
VERSION_NUMBER = prop.getProperty("version") + " (build " + prop.getProperty("build_number") + ")";
|
|
}
|
|
|
|
// General Mod related constants
|
|
public static final String MOD_ID = "EE3";
|
|
public static final String CHANNEL_NAME = MOD_ID;
|
|
public static final String MOD_NAME = "Equivalent Exchange 3";
|
|
public static final String VERSION_NUMBER;
|
|
public static final String FINGERPRINT = "@FINGERPRINT@";
|
|
public static final int ONE_SECOND_IN_TICKS = 20;
|
|
public static final String SERVER_PROXY_CLASS = "com.pahimar.ee3.proxy.ServerProxy";
|
|
public static final String CLIENT_PROXY_CLASS = "com.pahimar.ee3.proxy.ClientProxy";
|
|
public static final int VERSION_CHECK_ATTEMPTS = 3;
|
|
}
|