You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Description({"Plays a <a href='classes.html#visualeffect'>visual effect</a> at a given location or on a given entity.",
45
42
"Please note that some effects can only be played on entities, e.g. wolf hearts or the hurt effect, and that these are always visible to all players."})
46
43
@Examples({"play wolf hearts on the clicked wolf",
47
44
"show mob spawner flames at the targeted block to the player"})
48
45
@Since("2.1")
49
46
publicclassEffVisualEffectextendsEffect {
47
+
50
48
static {
51
-
Skript.registerEffect(EffVisualEffect.class, "(play|show) %visualeffects% (on|%directions%) %entities/locations% [(to %-players%|in (radius|range) of %number%)]",
52
-
"(play|show) %number% %visualeffects% (on|%directions%) %locations% [(to %-players%|in (radius|range) of %number%)]");
49
+
Skript.registerEffect(EffVisualEffect.class,
50
+
"(play|show) %visualeffects% (on|%directions%) %entities/locations% [(to %-players%|in (radius|range) of %number%)]",
51
+
"(play|show) %number% %visualeffects% (on|%directions%) %locations% [(to %-players%|in (radius|range) of %number%)]");
53
52
}
54
-
55
-
@SuppressWarnings("null")
53
+
54
+
@SuppressWarnings("NotNullFieldNotInitialized")
56
55
privateExpression<VisualEffect> effects;
57
-
@SuppressWarnings("null")
56
+
@SuppressWarnings("NotNullFieldNotInitialized")
58
57
privateExpression<Direction> direction;
59
-
@SuppressWarnings("null")
58
+
@SuppressWarnings("NotNullFieldNotInitialized")
60
59
privateExpression<?> where;
60
+
61
61
@Nullable
62
62
privateExpression<Player> players;
63
63
@Nullable
@@ -67,7 +67,7 @@ public class EffVisualEffect extends Effect {
0 commit comments