Update crafttweaker support

This commit is contained in:
modmuss50 2017-06-28 20:50:00 +01:00
parent c89aaaed7a
commit c0aab7f37a
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
18 changed files with 119 additions and 297 deletions

View file

@ -24,9 +24,9 @@
package techreborn.compat.crafttweaker;
import minetweaker.MineTweakerAPI;
import minetweaker.api.item.IIngredient;
import minetweaker.api.item.IItemStack;
import crafttweaker.CraftTweakerAPI;
import crafttweaker.api.item.IIngredient;
import crafttweaker.api.item.IItemStack;
import net.minecraft.item.ItemStack;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenMethod;
@ -48,12 +48,12 @@ public class CTBlastFurnace extends CTGeneric {
@ZenMethod
public static void removeInputRecipe(IIngredient iIngredient) {
MineTweakerAPI.apply(new RemoveInput(iIngredient, getMachineName()));
CraftTweakerAPI.apply(new RemoveInput(iIngredient, getMachineName()));
}
@ZenMethod
public static void removeRecipe(IItemStack output) {
MineTweakerAPI.apply(new Remove(CraftTweakerCompat.toStack(output), getMachineName()));
CraftTweakerAPI.apply(new Remove(CraftTweakerCompat.toStack(output), getMachineName()));
}
public static String getMachineName() {