Java Code Examples for cpw.mods.fml.client.registry.ClientRegistry#registerKeyBinding()
The following examples show how to use
cpw.mods.fml.client.registry.ClientRegistry#registerKeyBinding() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TranslocatorClientProxy.java From Translocators with MIT License | 6 votes |
public void init() { if(config.getTag("checkUpdates").getBooleanValue(true)) CCUpdateChecker.updateCheck("Translocator"); ClientUtils.enhanceSupportersList("Translocator"); super.init(); ClientRegistry.bindTileEntitySpecialRenderer(TileItemTranslocator.class, new TileTranslocatorRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileLiquidTranslocator.class, new TileTranslocatorRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileCraftingGrid.class, new TileCraftingGridRenderer()); PacketCustom.assignHandler(TranslocatorCPH.channel, new TranslocatorCPH()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(blockTranslocator), new ItemTranslocatorRenderer()); FMLCommonHandler.instance().bus().register(CraftingGridKeyHandler.instance); ClientRegistry.registerKeyBinding(CraftingGridKeyHandler.instance); }
Example 2
Source File: MwKeyHandler.java From mapwriter with MIT License | 5 votes |
public MwKeyHandler(){ ClientRegistry.registerKeyBinding(keyMapGui); ClientRegistry.registerKeyBinding(keyNewMarker); ClientRegistry.registerKeyBinding(keyMapMode); ClientRegistry.registerKeyBinding(keyNextGroup); ClientRegistry.registerKeyBinding(keyTeleport); ClientRegistry.registerKeyBinding(keyZoomIn); ClientRegistry.registerKeyBinding(keyZoomOut); ClientRegistry.registerKeyBinding(keyUndergroundMode); }
Example 3
Source File: ClientProxy.java From AdvancedMod with GNU General Public License v3.0 | 4 votes |
private void registerKeybinds(){ FMLCommonHandler.instance().bus().register(new KeyInputHandler()); for(Keybindings key : Keybindings.values()) { ClientRegistry.registerKeyBinding(key.getKeybind()); } }
Example 4
Source File: SJKeyBinding.java From SimplyJetpacks with MIT License | 4 votes |
public SJKeyBinding(String name, int keyId, ModKey keyType) { super(SimplyJetpacks.PREFIX + "keybind." + name, keyId, "Simply Jetpacks"); this.keyType = keyType; ClientRegistry.registerKeyBinding(this); KeyHandler.keyBindings.add(this); }
Example 5
Source File: ClientProxy.java From LetsModReboot with GNU General Public License v3.0 | 4 votes |
@Override public void registerKeyBindings() { ClientRegistry.registerKeyBinding(Keybindings.charge); ClientRegistry.registerKeyBinding(Keybindings.release); }
Example 6
Source File: KeyHandler.java From PneumaticCraft with GNU General Public License v3.0 | 4 votes |
private KeyBinding registerKeyBinding(KeyBinding keyBinding){ ClientRegistry.registerKeyBinding(keyBinding); keys.add(keyBinding); return keyBinding; }