use of hellfirepvp.astralsorcery.client.resource.query.TextureQuery 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));
}
Aggregations