diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2018-12-31 13:12:25 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2018-12-31 13:12:25 +0800 |
| commit | fee12aa0885da204ec874cd5ada371c42501c873 (patch) | |
| tree | 880596f5f463e08762a56b1cb1d7008aaed1899d /src/main/java/me/shedaniel/mixins/MixinPotionBrewing.java | |
| parent | 1b14c5142bb49db9af078b5c753bc22ce35a40cc (diff) | |
| download | RoughlyEnoughItems-fee12aa0885da204ec874cd5ada371c42501c873.tar.gz RoughlyEnoughItems-fee12aa0885da204ec874cd5ada371c42501c873.tar.bz2 RoughlyEnoughItems-fee12aa0885da204ec874cd5ada371c42501c873.zip | |
packetadder wip
Diffstat (limited to 'src/main/java/me/shedaniel/mixins/MixinPotionBrewing.java')
| -rw-r--r-- | src/main/java/me/shedaniel/mixins/MixinPotionBrewing.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/main/java/me/shedaniel/mixins/MixinPotionBrewing.java b/src/main/java/me/shedaniel/mixins/MixinPotionBrewing.java deleted file mode 100644 index 37ab903ef..000000000 --- a/src/main/java/me/shedaniel/mixins/MixinPotionBrewing.java +++ /dev/null @@ -1,21 +0,0 @@ -package me.shedaniel.mixins; - -import me.shedaniel.listenerdefinitions.PotionCraftingAdder; -import net.minecraft.item.Item; -import net.minecraft.potion.PotionBrewing; -import net.minecraft.potion.PotionType; -import org.dimdev.riftloader.RiftLoader; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; - -@Mixin(PotionBrewing.class) -public class MixinPotionBrewing { - - @Inject(method = "addMix", at = @At("RETURN")) - private static void addMix(PotionType inputPotion, Item reagent, PotionType outputPotion, CallbackInfo info) { - RiftLoader.instance.getListeners(PotionCraftingAdder.class).forEach(potionCraftingAdder -> potionCraftingAdder.addPotionRecipe(inputPotion, reagent, outputPotion)); - } - -} |
