Skip to content

Instantly share code, notes, and snippets.

@cpw
Created September 9, 2012 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpw/3684576 to your computer and use it in GitHub Desktop.
Save cpw/3684576 to your computer and use it in GitHub Desktop.
package demo;
import java.util.Map;
import com.google.common.collect.Maps;
import cpw.mods.fml.common.Mod.Instance;
import buildcraft.BuildCraftCore;
public class BuildCraftProxy {
@Instance("BuildCraft|Core")
public static BuildCraftCore bcCore;
static
{
Registry.proxies.put("BuildCraft", new BuildCraftProxy());
}
}
class Registry
{
public static Map<String,Object> proxies = Maps.newHashMap();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment