Make Lore quality-colored while in Barrel/Brewer

This commit is contained in:
Sn0wStorm
2013-08-19 16:23:12 +02:00
parent a347a16c06
commit ab6312331e
6 changed files with 183 additions and 47 deletions
+2 -13
View File
@@ -117,19 +117,8 @@ public class BIngredients {
return count;
}
public void qualityLore(PotionMeta meta, BRecipe recipe, boolean distilled) {
// Ingredients
String prefix = Brew.getQualityColor(getIngredientQuality(recipe));
String lore = "Zutaten";
Brew.addOrReplaceLore(meta, prefix, lore);
// Cookingtime
prefix = Brew.getQualityColor(getCookingQuality(recipe, distilled)) + cookedTime + " minute";
if (cookedTime > 1) {
prefix = prefix + "n";
}
lore = " gegärt";
Brew.addOrReplaceLore(meta, prefix, lore);
public int getCookedTime() {
return cookedTime;
}
// best recipe for current state of potion, STILL not always returns the