-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Update visual effects #4123
Update visual effects #4123
Conversation
e5761b6
to
726b82f
Compare
The reason the test fails, is because the condition |
733b4cb
to
433be2a
Compare
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.
Nothing major
Should pretty much be fine as long as it's tested
@Override | ||
@Nullable | ||
public VisualEffect parse(String s, ParseContext context) { | ||
return VisualEffects.parse(s); | ||
return null; | ||
} |
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.
You can just get rid of the override for this method since canParse returns false.
import java.util.function.BiFunction; | ||
import java.util.function.Consumer; | ||
import java.util.stream.Stream; | ||
|
||
public class VisualEffects { | ||
|
||
private static final boolean NEW_EFFECT_DATA = Skript.classExists("org.bukkit.block.data.BlockData"); | ||
private static final boolean HAS_REDSTONE_DATA = Skript.classExists("org.bukkit.Particle$DustOptions"); | ||
private static final boolean DUST_OPTIONS_EXISTS = true; |
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 can just be removed
add vector projection expression Co-authored-by: LimeGlass <[email protected]>
…1-SNAPSHOT (SkriptLang#5739) * Bump io.papermc.paper:paper-api Bumps io.papermc.paper:paper-api from 1.19.4-R0.1-SNAPSHOT to 1.20-R0.1-SNAPSHOT. --- updated-dependencies: - dependency-name: io.papermc.paper:paper-api dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Update and rename paper-1.19.3.json to paper-1.20.json * Update build.gradle * Update gradle.properties * Update default.lang --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: LimeGlass <[email protected]>
…1-SNAPSHOT (SkriptLang#5746) * Bump io.papermc.paper:paper-api Bumps io.papermc.paper:paper-api from 1.20-R0.1-SNAPSHOT to 1.20.1-R0.1-SNAPSHOT. --- updated-dependencies: - dependency-name: io.papermc.paper:paper-api dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Update build.gradle * Update gradle.properties * Update and rename paper-1.20.json to paper-1.20.1.json --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: LimeGlass <[email protected]>
* Add quit reason * Cleanup * Versioning
… without a number defined. (SkriptLang#5790) Update ExprBlocks.java
Replace Java 9 replace method with Skript's method
Update Utils.java
* Initial * Support plural * Merge with ExprChunk * Fix * Fix 2 * Cleanup class to obey code convention * Requested changes * Fix indent * Indent docs and improved pattern --------- Co-authored-by: LimeGlass <[email protected]>
bd134d0
to
3f08853
Compare
Closing due to inactivity. |
Description
This change makes visual effects an expression instead of a literal, and it allows for multiple expressions in an effect's pattern. It also makes visual effects serializable again, which I broke in #3939.
It also adds the last two 1.17 particles, and adds a size parameter to the dust particle.
TODO: https://discord.com/channels/135877399391764480/672553438936301568/1013094898284646461 EffVisualEffect init entity check
TODO: fix CondIsBlock priority first, mb UnparsedLiteral stuff too#5809Target Minecraft Versions: any
Requirements: none
Related Issues: #3939, #4070, #4196, #4381