Convert Potions for 1.9

Convert existing brews to show correct color and lore
This commit is contained in:
Sn0wStorm
2016-05-18 20:28:28 +02:00
parent e015b29c1c
commit 024c05b817
6 changed files with 63 additions and 37 deletions
+13 -2
View File
@@ -83,8 +83,7 @@ public class Brew {
public static Brew get(ItemStack item) {
if (item.getType() == Material.POTION) {
if (item.hasItemMeta()) {
PotionMeta potionMeta = (PotionMeta) item.getItemMeta();
return get(potionMeta);
return get((PotionMeta) item.getItemMeta());
}
}
return null;
@@ -274,6 +273,18 @@ public class Brew {
unlabeled = true;
}
public int getDistillRuns() {
return distillRuns;
}
public float getAgeTime() {
return ageTime;
}
public BRecipe getCurrentRecipe() {
return currentRecipe;
}
public boolean isPersistent() {
return persistent;
}