Search in sources :

Example 1 with TypeTreeBeaconColor

use of hellfirepvp.astralsorcery.common.base.patreon.types.TypeTreeBeaconColor in project AstralSorcery by HellFirePvP.

the class ProviderTreeBeaconColor method buildEffect.

@Override
public TypeTreeBeaconColor buildEffect(UUID playerUUID, List<String> effectParameters) throws Exception {
    UUID effectUUID = UUID.fromString(effectParameters.get(0));
    FlareColor fc = null;
    if (!"null".equals(effectParameters.get(1))) {
        fc = FlareColor.valueOf(effectParameters.get(1));
    }
    int color = Integer.parseInt(effectParameters.get(2));
    return new TypeTreeBeaconColor(effectUUID, fc, new Color(color));
}
Also used : TypeTreeBeaconColor(hellfirepvp.astralsorcery.common.base.patreon.types.TypeTreeBeaconColor) FlareColor(hellfirepvp.astralsorcery.common.base.patreon.FlareColor) TypeTreeBeaconColor(hellfirepvp.astralsorcery.common.base.patreon.types.TypeTreeBeaconColor) UUID(java.util.UUID) FlareColor(hellfirepvp.astralsorcery.common.base.patreon.FlareColor)

Aggregations

FlareColor (hellfirepvp.astralsorcery.common.base.patreon.FlareColor)1 TypeTreeBeaconColor (hellfirepvp.astralsorcery.common.base.patreon.types.TypeTreeBeaconColor)1 UUID (java.util.UUID)1