-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
Refactor ExprFilter to use new parser data API #6342
Conversation
wasn't there something like ExprInput? that handled the inputs? |
it's now a separate class, ExprFilterInput |
ohhhh I didn't realize it wasn't already |
Set<ExprFilterInput<?>> dependentInputs = parentFilter.getDependentInputs(); | ||
dependentInputs.remove(this.source); | ||
dependentInputs.add(this); | ||
|
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.
|
||
} | ||
this.types = types; | ||
this.superType = (Class<T>) Utils.getSuperType(types); |
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 wonder if we want to ensure that the return type is one Skript is aware of. That is, ensure a ClassInfo exists for it.
public static ClassInfo<?> getSuperClassInfo(Class<?>... classes) { |
Closing as #6737 has implemented this functionality. |
Description
Refactors ExprFilter to use new parser data API instead of the static based method it was using before
Target Minecraft Versions: any
Requirements: none
Related Issues: none