Reformatted all the code using the default intelji formatting options.
This commit is contained in:
parent
2f63a24070
commit
e0ab0af822
363 changed files with 20524 additions and 23016 deletions
|
@ -5,8 +5,8 @@ import org.lwjgl.input.Keyboard;
|
|||
import techreborn.lib.ModInfo;
|
||||
|
||||
public class KeyBindings {
|
||||
|
||||
public static KeyBinding config = new KeyBinding(ModInfo.Keys.CONFIG,
|
||||
Keyboard.KEY_P, ModInfo.Keys.CATEGORY);
|
||||
|
||||
public static KeyBinding config = new KeyBinding(ModInfo.Keys.CONFIG,
|
||||
Keyboard.KEY_P, ModInfo.Keys.CATEGORY);
|
||||
|
||||
}
|
||||
|
|
|
@ -5,21 +5,18 @@ import cpw.mods.fml.common.gameevent.InputEvent;
|
|||
import techreborn.lib.Key;
|
||||
import techreborn.util.LogHelper;
|
||||
|
||||
public class KeyInputEventHandler
|
||||
{
|
||||
private static Key getPressedKeybinding()
|
||||
{
|
||||
if (KeyBindings.config.isPressed()) {
|
||||
return Key.CONFIG;
|
||||
}
|
||||
public class KeyInputEventHandler {
|
||||
private static Key getPressedKeybinding() {
|
||||
if (KeyBindings.config.isPressed()) {
|
||||
return Key.CONFIG;
|
||||
}
|
||||
|
||||
return Key.UNKNOWN;
|
||||
}
|
||||
return Key.UNKNOWN;
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void handleKeyInputEvent(InputEvent.KeyInputEvent event)
|
||||
{
|
||||
LogHelper.info(getPressedKeybinding());
|
||||
}
|
||||
@SubscribeEvent
|
||||
public void handleKeyInputEvent(InputEvent.KeyInputEvent event) {
|
||||
LogHelper.info(getPressedKeybinding());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue