Package com.flansmod.api

Examples of com.flansmod.api.IControllable


    }
   
    //Handle driving keys
    if(ridingEntity instanceof IControllable)
    {
      IControllable riding = (IControllable)ridingEntity;
      if(mc.gameSettings.keyBindForward.isPressed())//if(accelerateKey.isPressed())
        riding.pressKey(0, player);
      if(mc.gameSettings.keyBindBack.isPressed())//if(decelerateKey.isPressed())
        riding.pressKey(1, player);
      if(mc.gameSettings.keyBindLeft.isPressed())//if(leftKey.isPressed())
        riding.pressKey(2, player);
      if(mc.gameSettings.keyBindRight.isPressed())//if(rightKey.isPressed())
        riding.pressKey(3, player);
      if(mc.gameSettings.keyBindJump.isPressed())//if(upKey.isPressed())
        riding.pressKey(4, player);
      if(downKey.isPressed())
        riding.pressKey(5, player);
      if(mc.gameSettings.keyBindSneak.isPressed())//if(exitKey.isPressed())
        riding.pressKey(6, player);
      if(mc.gameSettings.keyBindInventory.isPressed() || inventoryKey.isPressed())
        riding.pressKey(7, player);
      if(bombKey.isPressed())
        riding.pressKey(8, player);
      if(gunKey.isPressed())
        riding.pressKey(9, player);
      if(controlSwitchKey.isPressed())
        riding.pressKey(10, player);
      if(leftRollKey.isPressed())
        riding.pressKey(11, player);
      if(rightRollKey.isPressed())
        riding.pressKey(12, player);
      if(gearKey.isPressed())
        riding.pressKey(13, player);
      if(doorKey.isPressed())
        riding.pressKey(14, player);
      if(modeKey.isPressed())
        riding.pressKey(15, player);
      //if(trimKey.isPressed())
      //  riding.pressKey(16, player);
     
      /*
      for(KeyBinding key : mc.gameSettings.keyBindings )
View Full Code Here

TOP

Related Classes of com.flansmod.api.IControllable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.