Skript
Skript copied to clipboard
Get all the values of a classinfo
Description
This PR makes ExprSets more diverse. By supplying backing values to a classinfo, ExprSets will retrieve the values and return them. If the class of the classinfo is an enum it will supply the enum constants automatically. This PR makes ExprSets use this syntax [(all [[of] the]|the|every)] %*classinfo%
, an example of how this would be for exampling getting all the possible attribute types by using set {_types::*} to all of the attribute types
, this goes with every classinfo with backing values.
This PR also closes #5067 as it does the same fixes and builds upon them. This PR also moves the original syntax into a new expression
Target Minecraft Versions: any Requirements: none Related Issues: #5082
Related issue:
- #5082
I don't see the point of having a generic usage in this class when Skript will only know the value as Object the entire time until runtime.