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));
}
Aggregations