-
-
Notifications
You must be signed in to change notification settings - Fork 393
Add an AvailableEvent(s) annotation #7668
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
Open
Nuutrai
wants to merge
32
commits into
SkriptLang:dev/feature
Choose a base branch
from
Nuutrai:docs
base: dev/feature
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
ed0a7c1
Add annotation
Nuutrai 2857590
Add annotation to needed expressions
Nuutrai 5e909b3
Add annotation
Nuutrai 29f90ec
Add annotation to needed expressions
Nuutrai 56d6871
Parsing stack (#5277) (#7534)
Moderocky 2c9571e
String -> UUID (#7497)
Burbulinis d4f3564
More changes
Nuutrai 4326b22
Merge remote-tracking branch 'origin/docs' into docs
Nuutrai 09ca234
Revert "String -> UUID (#7497)"
Nuutrai 2608e78
Revert "Parsing stack (#5277) (#7534)"
Nuutrai 4d61948
Adds a little documentation to the annotations
Nuutrai 79e4db5
Correct list annotations
Nuutrai cb92666
Fixing a fix
Nuutrai 7ae9fe1
Deprecate Events
Nuutrai 81d2c47
Revert stackable AvailableEvent change
Nuutrai d650ca3
Oops
Nuutrai f31560d
Update src/main/java/ch/njol/skript/doc/AvailableEvents.java
Nuutrai e3d0b86
Good stuff, mhm
Nuutrai 019e4d3
More good stuff
Nuutrai 18881ed
Documentation Id if it exists and is needed
Nuutrai e9a41b2
Update src/main/java/ch/njol/skript/doc/JSONGenerator.java
Nuutrai 06f166f
Moved JsonArray generator to a helper
Nuutrai e27c96f
Merge remote-tracking branch 'origin/docs' into docs
Nuutrai 8b8dc44
Apply suggestions from code review
Nuutrai c81f8cf
Update JSON_VERSION to 2.0
Nuutrai 1465585
Correct AvailableEvents for ExprCommand and ExprCommandSender
Nuutrai f877e60
Merge branch 'dev/feature' into docs
Efnilite dd02e4c
Switch #cacheEvents() to static loading
Nuutrai f4a7e42
Apply suggestions from code review
Nuutrai 7b3216c
Merge branch 'dev/feature' into docs
Efnilite 7cc725f
Merge branch 'dev/feature' into docs
Nuutrai a985dda
Apply half suggestions from code review
Nuutrai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package ch.njol.skript.doc; | ||
|
||
import org.bukkit.event.Event; | ||
|
||
import java.lang.annotation.*; | ||
|
||
/** | ||
* Provides a list of {@link org.bukkit.event.Event}s that this syntax element can be used in. | ||
*/ | ||
@Target(ElementType.TYPE) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
public @interface AvailableEvents { | ||
|
||
Class<? extends Event>[] value(); | ||
|
||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It's possible that two Bukkit events will resolve to the same SkriptEventInfo. Is that something we need to be checking?