33import net .minecraft .resources .ResourceLocation ;
44import net .minecraft .world .effect .MobEffectInstance ;
55import net .minecraft .world .item .alchemy .Potion ;
6+ import net .minecraft .world .item .alchemy .Potions ;
7+ import net .minecraft .world .item .Items ;
68
79import java .util .LinkedHashMap ;
810import java .util .Map ;
911import java .util .function .BiConsumer ;
1012
1113import static at .petrak .hexcasting .api .HexAPI .modLoc ;
14+ import at .petrak .hexcasting .mixin .accessor .AccessorPotionBrewing ;
1215
1316public class HexPotions {
1417 public static void register (BiConsumer <Potion , ResourceLocation > r ) {
1518 for (var e : POTIONS .entrySet ()) {
1619 r .accept (e .getValue (), e .getKey ());
1720 }
21+ HexPotions .addRecipes ();
1822 }
1923
2024 private static final Map <ResourceLocation , Potion > POTIONS = new LinkedHashMap <>();
@@ -26,12 +30,24 @@ public static void register(BiConsumer<Potion, ResourceLocation> r) {
2630 public static final Potion ENLARGE_GRID_STRONG = make ("enlarge_grid_strong" ,
2731 new Potion ("enlarge_grid_strong" , new MobEffectInstance (HexMobEffects .ENLARGE_GRID , 1800 , 1 )));
2832
33+ public static final Potion SHRINK_GRID = make ("shrink_grid" ,
34+ new Potion ("shrink_grid" , new MobEffectInstance (HexMobEffects .SHRINK_GRID , 3600 )));
35+ public static final Potion SHRINK_GRID_LONG = make ("shrink_grid_long" ,
36+ new Potion ("shrink_grid_long" , new MobEffectInstance (HexMobEffects .SHRINK_GRID , 9600 )));
37+ public static final Potion SHRINK_GRID_STRONG = make ("shrink_grid_strong" ,
38+ new Potion ("shrink_grid_strong" , new MobEffectInstance (HexMobEffects .SHRINK_GRID , 1800 , 1 )));
39+
2940 public static void addRecipes () {
30- /*
3141 AccessorPotionBrewing .addMix (Potions .AWKWARD , HexItems .AMETHYST_DUST , ENLARGE_GRID );
3242 AccessorPotionBrewing .addMix (ENLARGE_GRID , Items .REDSTONE , ENLARGE_GRID_LONG );
3343 AccessorPotionBrewing .addMix (ENLARGE_GRID , Items .GLOWSTONE_DUST , ENLARGE_GRID_STRONG );
34- */
44+
45+ AccessorPotionBrewing .addMix (ENLARGE_GRID , Items .FERMENTED_SPIDER_EYE , SHRINK_GRID );
46+ AccessorPotionBrewing .addMix (ENLARGE_GRID_LONG , Items .FERMENTED_SPIDER_EYE , SHRINK_GRID_LONG );
47+ AccessorPotionBrewing .addMix (ENLARGE_GRID_STRONG , Items .FERMENTED_SPIDER_EYE , SHRINK_GRID_STRONG );
48+
49+ AccessorPotionBrewing .addMix (SHRINK_GRID , Items .REDSTONE , SHRINK_GRID_LONG );
50+ AccessorPotionBrewing .addMix (SHRINK_GRID , Items .GLOWSTONE_DUST , SHRINK_GRID_STRONG );
3551 }
3652
3753 private static <T extends Potion > T make (String id , T potion ) {
0 commit comments