Multiple Effects per Potion

This commit is contained in:
Sn0wStorm
2013-08-14 20:08:55 +02:00
parent 62f1d7686a
commit e2e6448cf6
7 changed files with 85 additions and 42 deletions
+6 -9
View File
@@ -153,20 +153,13 @@ public class Brew {
}
// return special effect
public String getEffect() {
public Map<String, Integer> getEffects() {
if (currentRecipe != null) {
return currentRecipe.getEffect();
return currentRecipe.getEffects();
}
return null;
}
public int getEffectDur() {
if (currentRecipe != null) {
return currentRecipe.getEffectDur();
}
return 0;
}
// Distilling section ---------------
// distill all custom potions in the brewer
@@ -269,6 +262,10 @@ public class Brew {
}
}
public PotionMeta addQualityLore(PotionMeta meta, String prefix, String lore) {
return null;
}
// Saves all data
public static void save(ConfigurationSection config) {
for (int uid : potions.keySet()) {