Search in sources :

Example 1 with TypeFlareColor

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();
}
Also used : PatreonEffect(hellfirepvp.astralsorcery.common.base.patreon.PatreonEffect) TypeFlareColor(hellfirepvp.astralsorcery.common.base.patreon.types.TypeFlareColor) TypeFlareColor(hellfirepvp.astralsorcery.common.base.patreon.types.TypeFlareColor) OnlyIn(net.minecraftforge.api.distmarker.OnlyIn)

Aggregations

PatreonEffect (hellfirepvp.astralsorcery.common.base.patreon.PatreonEffect)1 TypeFlareColor (hellfirepvp.astralsorcery.common.base.patreon.types.TypeFlareColor)1 OnlyIn (net.minecraftforge.api.distmarker.OnlyIn)1