use of hellfirepvp.astralsorcery.common.base.patreon.types.TypeFlareColor in project AstralSorcery by HellFirePvP.
the class PatreonFlareDynamicColor method getColor.
@Override
@OnlyIn(Dist.CLIENT)
protected Color getColor() {
PatreonEffect effect = getEffect();
if (!(effect instanceof TypeFlareColor)) {
return Color.WHITE;
}
Color color = ((TypeFlareColor) effect).getColorProvider().get();
return rand.nextInt(3) == 0 ? color : color.brighter();
}
Aggregations