Skip to content

Instantly share code, notes, and snippets.

@WhiteAbeLincoln
Created July 10, 2014 22:47
Show Gist options
  • Save WhiteAbeLincoln/2d527f016bdcb7267f90 to your computer and use it in GitHub Desktop.
Save WhiteAbeLincoln/2d527f016bdcb7267f90 to your computer and use it in GitHub Desktop.
calling your keybinding methods
@Mod(modid = Reference.MODID, version = Reference.VERSION, name = Reference.NAME_STRING)
public class TutorialMod
{
KeyInputHandler keys = new KeyInputHandler();
@EventHandler
public void preinit(FMLPreInitializationEvent event){
FMLCommonHandler.instance().bus().register(keys);
}
@EventHandler
public void init(FMLInitializationEvent event){
KeyBindings.init();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment