Search in sources :

Example 1 with TypeStarryPlayerLayer

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

the class ProviderStarryPlayerLayer method buildEffect.

@Override
public TypeStarryPlayerLayer 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));
    }
    return new TypeStarryPlayerLayer(effectUUID, fc, playerUUID);
}
Also used : TypeStarryPlayerLayer(hellfirepvp.astralsorcery.common.base.patreon.types.TypeStarryPlayerLayer) UUID(java.util.UUID) FlareColor(hellfirepvp.astralsorcery.common.base.patreon.FlareColor)

Aggregations

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