Search in sources :

Example 1 with TypeFlareCrystal

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

the class ProviderFlareCrystal method buildEffect.

@Override
public TypeFlareCrystal buildEffect(UUID playerUUID, List<String> effectParameters) throws Exception {
    UUID uniqueId = UUID.fromString(effectParameters.get(0));
    FlareColor fc = null;
    if (!"null".equals(effectParameters.get(1))) {
        fc = FlareColor.valueOf(effectParameters.get(1));
    }
    int colorTheme = Integer.parseInt(effectParameters.get(2));
    String modelTexture = effectParameters.get(3);
    if (modelTexture.equalsIgnoreCase("crystal_big_magenta")) {
        // Remap to 1.14 texture name
        modelTexture = "crystal_magenta";
    }
    return new TypeFlareCrystal(uniqueId, fc, new Color(colorTheme), new TextureQuery(AssetLoader.TextureLocation.MODEL, modelTexture));
}
Also used : TextureQuery(hellfirepvp.astralsorcery.client.resource.query.TextureQuery) TypeFlareCrystal(hellfirepvp.astralsorcery.common.base.patreon.types.TypeFlareCrystal) FlareColor(hellfirepvp.astralsorcery.common.base.patreon.FlareColor) UUID(java.util.UUID) FlareColor(hellfirepvp.astralsorcery.common.base.patreon.FlareColor)

Aggregations

TextureQuery (hellfirepvp.astralsorcery.client.resource.query.TextureQuery)1 FlareColor (hellfirepvp.astralsorcery.common.base.patreon.FlareColor)1 TypeFlareCrystal (hellfirepvp.astralsorcery.common.base.patreon.types.TypeFlareCrystal)1 UUID (java.util.UUID)1