Added the Potion Flask and a few of the potion effects - max amount of effects that can be added to a single flask is currently 3
This commit is contained in:
parent
944b8232e6
commit
98406793a1
9 changed files with 47 additions and 4 deletions
|
@ -33,6 +33,7 @@ public class AlchemyTablePotionAugmentRecipe extends AlchemyTablePotionRecipe
|
|||
|
||||
this.wantedPotion = baseEffect.getPotion();
|
||||
this.lengthAugment = lengthAugment;
|
||||
this.powerAugment = powerAugment;
|
||||
}
|
||||
|
||||
public AlchemyTablePotionAugmentRecipe(int lpDrained, int ticksRequired, int tierRequired, ItemStack inputItem, PotionEffect baseEffect, double lengthAugment, int powerAugment)
|
||||
|
|
|
@ -132,7 +132,7 @@ public class AlchemyTablePotionRecipe extends AlchemyTableRecipe
|
|||
public boolean isPotionFlaskValidInput(ItemStack stack)
|
||||
{
|
||||
List<PotionEffect> effectList = PotionUtils.getEffectsFromStack(stack);
|
||||
if (effectList.size() + 1 >= temporaryMaximumEffectsOnThePotionFlaskYesThisIsALongFieldItIsJustSoIRemember)
|
||||
if (effectList.size() >= temporaryMaximumEffectsOnThePotionFlaskYesThisIsALongFieldItIsJustSoIRemember)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ public class AlchemyTablePotionRecipe extends AlchemyTableRecipe
|
|||
|
||||
ItemStack outputStack = inputStack.copy();
|
||||
|
||||
List<PotionEffect> effectList = new ArrayList<PotionEffect>();
|
||||
List<PotionEffect> effectList = PotionUtils.getEffectsFromStack(outputStack);
|
||||
effectList.add(baseEffect);
|
||||
|
||||
PotionUtils.appendEffects(outputStack, effectList);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue