[hue] support new effects (#15732)

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This commit is contained in:
Andrew Fiddian-Green
2023-10-10 18:11:36 +01:00
committed by GitHub
parent b9286b0fce
commit 2382a557d3

View File

@@ -25,6 +25,9 @@ import org.eclipse.jdt.annotation.Nullable;
@NonNullByDefault
public enum EffectType {
// fixed Effects
PRISM,
OPAL,
GLISTEN,
SPARKLE,
FIRE,
CANDLE,
@@ -33,7 +36,7 @@ public enum EffectType {
// applies to both
NO_EFFECT;
private static final Set<EffectType> FIXED = Set.of(SPARKLE, FIRE, CANDLE);
private static final Set<EffectType> FIXED = Set.of(PRISM, OPAL, GLISTEN, SPARKLE, FIRE, CANDLE);
private static final Set<EffectType> TIMED = Set.of(SUNRISE);
public static EffectType of(@Nullable String value) {