-
-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input API #7190
base: dev/feature
Are you sure you want to change the base?
Input API #7190
Conversation
src/test/java/org/skriptlang/skript/test/tests/syntaxes/events/EvtPlayerInputTest.java
Outdated
Show resolved
Hide resolved
...est/java/org/skriptlang/skript/test/tests/syntaxes/expressions/ExprCurrentInputKeysTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, tests failing though :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks very nice overall
i shed a tear when i saw the tests 🥹 |
i shed tears when i wrote the tests. for different reasons |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very cool
src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java
Outdated
Show resolved
Hide resolved
static { | ||
if (Skript.classExists("org.bukkit.Input")) { | ||
Skript.registerEvent("Player Input", EvtPlayerInput.class, PlayerInputEvent.class, | ||
"[player] (toggle|toggling|1:press[ing]|2:releas(e|ing)) [of] (%-inputkeys%|[a|any] key)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't like on toggle key
as a syntax. also, any reason for separating toggle
and toggling
? i think it's clearer, but it's not consistent with the other two options (e.g. why not have release
and releasing
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't like
on toggle key
as a syntax.
on toggle key
specifically or all its variations as well?
also, any reason for separating toggle and toggling? i think it's clearer, but it's not consistent with the other two options (e.g. why not have release and releasing)
I probably just missed by accident
src/test/java/org/skriptlang/skript/test/tests/syntaxes/conditions/CondIsPressingKeyTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/bukkit/input/elements/conditions/CondIsPressingKey.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/bukkit/input/elements/events/EvtPlayerInput.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/bukkit/input/elements/events/EvtPlayerInput.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could be wrong on these, not sure.
Description
This PR covers all the features of the new Input API.
Target Minecraft Versions: 1.21.3
Requirements: none
Related Issues: none