Skip to content

Commit d17981d

Browse files
committed
Set the default potion base to awkward
1 parent 590add6 commit d17981d

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

src/main/java/clashsoft/brewingapi/potion/recipe/PotionRecipe.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.util.List;
44

55
import clashsoft.brewingapi.item.ItemPotion2;
6+
import clashsoft.brewingapi.potion.PotionList;
67
import clashsoft.brewingapi.potion.type.IPotionType;
78
import clashsoft.brewingapi.potion.type.PotionBase;
89

@@ -14,6 +15,21 @@ public class PotionRecipe
1415
private PotionBase base;
1516
private ItemStack input;
1617

18+
/**
19+
* Constructs a new {@link PotionRecipe} from the given {@link ItemStack}
20+
* {@code input} the given {@link IPotionType} {@code output}. The required
21+
* base potion is set to awkward.
22+
*
23+
* @param input
24+
* the input stack
25+
* @param output
26+
* the output potion type
27+
*/
28+
public PotionRecipe(ItemStack input, IPotionType output)
29+
{
30+
this(input, PotionList.awkward, output);
31+
}
32+
1733
/**
1834
* Constructs a new {@link PotionRecipe} from the given {@link ItemStack}
1935
* {@code input}, the given {@link PotionBase} {@code base} and the given

src/main/java/clashsoft/brewingapi/potion/recipe/PotionRecipes.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import java.util.List;
77
import java.util.Map;
88

9+
import clashsoft.brewingapi.potion.PotionList;
910
import clashsoft.brewingapi.potion.type.IPotionType;
1011
import clashsoft.brewingapi.potion.type.PotionBase;
1112
import clashsoft.brewingapi.potion.type.PotionType;
@@ -98,7 +99,7 @@ public static void registerRecipe(PotionRecipe recipe)
9899
*/
99100
public static void addRecipe(ItemStack ingredient, IPotionType potionType)
100101
{
101-
addRecipe(ingredient, null, potionType);
102+
addRecipe(ingredient, PotionList.awkward, potionType);
102103
}
103104

104105
/**
@@ -132,7 +133,7 @@ public static void addRecipe(ItemStack ingredient, PotionBase base, IPotionType
132133
*/
133134
public static void addRecipe(ItemStack ingredient, PotionEffect effect)
134135
{
135-
addRecipe(ingredient, null, effect);
136+
addRecipe(ingredient, PotionList.awkward, effect);
136137
}
137138

138139
/**

0 commit comments

Comments
 (0)