mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 23:52:19 +00:00
Large Cleanup to Code Imports and Formatting
This commit is contained in:
1 parent
31aac0d6b3
commit
a9b602713c
155 files changed
+4089
-2194
No files matched your search
@@ -15,10 +15,27 @@ public class KeyEvent {
|
||||
this.timestamp = System.currentTimeMillis();
|
||||
}
|
||||
|
||||
public boolean is(KeyPreset.PressType t) { return this.type == t; }
|
||||
public boolean isPress() { return is(KeyPreset.PressType.PRESS); }
|
||||
public boolean isHold() { return is(KeyPreset.PressType.HOLD); }
|
||||
public boolean isRelease() { return is(KeyPreset.PressType.RELEASE); }
|
||||
public boolean isSinglePress() { return is(KeyPreset.PressType.SINGLE_PRESS); }
|
||||
public boolean isPressRelease() { return is(KeyPreset.PressType.PRESS_RELEASE); }
|
||||
public boolean is(KeyPreset.PressType t) {
|
||||
return this.type == t;
|
||||
}
|
||||
|
||||
public boolean isPress() {
|
||||
return is(KeyPreset.PressType.PRESS);
|
||||
}
|
||||
|
||||
public boolean isHold() {
|
||||
return is(KeyPreset.PressType.HOLD);
|
||||
}
|
||||
|
||||
public boolean isRelease() {
|
||||
return is(KeyPreset.PressType.RELEASE);
|
||||
}
|
||||
|
||||
public boolean isSinglePress() {
|
||||
return is(KeyPreset.PressType.SINGLE_PRESS);
|
||||
}
|
||||
|
||||
public boolean isPressRelease() {
|
||||
return is(KeyPreset.PressType.PRESS_RELEASE);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user