Fixed script breaking. BWM methods are marked as deprecated
This commit is contained in:
parent
5d4a8032af
commit
2616b45475
4 changed files with 53 additions and 41 deletions
|
@ -4,18 +4,12 @@ package com.blamejared.compat.betterwithmods;
|
|||
import betterwithmods.common.registry.bulk.manager.CauldronManager;
|
||||
import betterwithmods.common.registry.bulk.recipes.CauldronRecipe;
|
||||
import com.blamejared.ModTweaker;
|
||||
import com.blamejared.compat.betterwithmods.util.BulkAdd;
|
||||
import com.blamejared.compat.betterwithmods.util.BulkRemove;
|
||||
import com.blamejared.compat.betterwithmods.util.*;
|
||||
import com.blamejared.mtlib.helpers.InputHelper;
|
||||
import crafttweaker.annotations.ModOnly;
|
||||
import crafttweaker.annotations.ZenRegister;
|
||||
import crafttweaker.api.item.IIngredient;
|
||||
import crafttweaker.api.item.IItemStack;
|
||||
import crafttweaker.annotations.*;
|
||||
import crafttweaker.api.item.*;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import stanhebben.zenscript.annotations.NotNull;
|
||||
import stanhebben.zenscript.annotations.Optional;
|
||||
import stanhebben.zenscript.annotations.ZenClass;
|
||||
import stanhebben.zenscript.annotations.ZenMethod;
|
||||
import stanhebben.zenscript.annotations.*;
|
||||
|
||||
@ZenClass("mods.betterwithmods.Cauldron")
|
||||
@ModOnly("betterwithmods")
|
||||
|
@ -23,18 +17,30 @@ import stanhebben.zenscript.annotations.ZenMethod;
|
|||
public class Cauldron {
|
||||
|
||||
@ZenMethod
|
||||
public static void add(IItemStack output, @NotNull IIngredient[] inputs, @Optional IItemStack secondaryOutput) {
|
||||
public static void add(IItemStack output, @NotNull IIngredient[] inputs, @Optional IItemStack secondaryOutput) {
|
||||
CauldronRecipe r = new CauldronRecipe(InputHelper.toStack(output), InputHelper.toStack(secondaryOutput), InputHelper.toObjects(inputs));
|
||||
ModTweaker.LATE_ADDITIONS.add(new BulkAdd("Set Cauldron Recipe", CauldronManager.getInstance(), r));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
@Deprecated
|
||||
public static void add(IItemStack output, @Optional IItemStack secondaryOutput, @NotNull IIngredient[] inputs) {
|
||||
add(output, inputs, secondaryOutput);
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void remove(IItemStack output) {
|
||||
ModTweaker.LATE_REMOVALS.add(new BulkRemove("Set Cauldron Recipe", CauldronManager.getInstance(), InputHelper.toStack(output), ItemStack.EMPTY));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
@Deprecated
|
||||
public static void remove(IItemStack output, @Optional IItemStack secondary, IIngredient[] inputs) {
|
||||
remove(output, inputs, secondary);
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void remove(IItemStack output, IIngredient[] inputs, @Optional IItemStack secondary) {
|
||||
ModTweaker.LATE_REMOVALS.add(new BulkRemove("Remove Cauldron Recipe", CauldronManager.getInstance(), InputHelper.toStack(output), secondary != null ? InputHelper.toStack(secondary) : ItemStack.EMPTY, InputHelper.toObjects(inputs)));
|
||||
}
|
||||
|
||||
|
|
|
@ -4,18 +4,12 @@ package com.blamejared.compat.betterwithmods;
|
|||
import betterwithmods.common.registry.bulk.manager.CrucibleManager;
|
||||
import betterwithmods.common.registry.bulk.recipes.CrucibleRecipe;
|
||||
import com.blamejared.ModTweaker;
|
||||
import com.blamejared.compat.betterwithmods.util.BulkAdd;
|
||||
import com.blamejared.compat.betterwithmods.util.BulkRemove;
|
||||
import com.blamejared.compat.betterwithmods.util.*;
|
||||
import com.blamejared.mtlib.helpers.InputHelper;
|
||||
import crafttweaker.annotations.ModOnly;
|
||||
import crafttweaker.annotations.ZenRegister;
|
||||
import crafttweaker.api.item.IIngredient;
|
||||
import crafttweaker.api.item.IItemStack;
|
||||
import crafttweaker.annotations.*;
|
||||
import crafttweaker.api.item.*;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import stanhebben.zenscript.annotations.NotNull;
|
||||
import stanhebben.zenscript.annotations.Optional;
|
||||
import stanhebben.zenscript.annotations.ZenClass;
|
||||
import stanhebben.zenscript.annotations.ZenMethod;
|
||||
import stanhebben.zenscript.annotations.*;
|
||||
|
||||
@ZenClass("mods.betterwithmods.Crucible")
|
||||
@ModOnly("betterwithmods")
|
||||
|
@ -28,6 +22,12 @@ public class Crucible {
|
|||
ModTweaker.LATE_ADDITIONS.add(new BulkAdd("Set Crucible Recipe", CrucibleManager.getInstance(), r));
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@ZenMethod
|
||||
public static void add(IItemStack output, @Optional IItemStack secondaryOutput, @NotNull IIngredient[] inputs) {
|
||||
add(output, inputs, secondaryOutput);
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void remove(IItemStack output) {
|
||||
ModTweaker.LATE_REMOVALS.add(new BulkRemove("Set Crucible Recipe", CrucibleManager.getInstance(), InputHelper.toStack(output), ItemStack.EMPTY));
|
||||
|
|
|
@ -3,18 +3,12 @@ package com.blamejared.compat.betterwithmods;
|
|||
import betterwithmods.common.registry.bulk.manager.MillManager;
|
||||
import betterwithmods.common.registry.bulk.recipes.MillRecipe;
|
||||
import com.blamejared.ModTweaker;
|
||||
import com.blamejared.compat.betterwithmods.util.BulkAdd;
|
||||
import com.blamejared.compat.betterwithmods.util.BulkRemove;
|
||||
import com.blamejared.compat.betterwithmods.util.*;
|
||||
import com.blamejared.mtlib.helpers.InputHelper;
|
||||
import crafttweaker.annotations.ModOnly;
|
||||
import crafttweaker.annotations.ZenRegister;
|
||||
import crafttweaker.api.item.IIngredient;
|
||||
import crafttweaker.api.item.IItemStack;
|
||||
import crafttweaker.annotations.*;
|
||||
import crafttweaker.api.item.*;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import stanhebben.zenscript.annotations.NotNull;
|
||||
import stanhebben.zenscript.annotations.Optional;
|
||||
import stanhebben.zenscript.annotations.ZenClass;
|
||||
import stanhebben.zenscript.annotations.ZenMethod;
|
||||
import stanhebben.zenscript.annotations.*;
|
||||
|
||||
|
||||
@ZenClass("mods.betterwithmods.Mill")
|
||||
|
@ -28,6 +22,12 @@ public class Mill {
|
|||
ModTweaker.LATE_ADDITIONS.add(new BulkAdd("Set Mill Recipe", MillManager.getInstance(), r));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
@Deprecated
|
||||
public static void add(IItemStack output, @Optional IItemStack secondaryOutput, @NotNull IIngredient[] inputs) {
|
||||
add(output, inputs, secondaryOutput);
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void remove(IItemStack output) {
|
||||
ModTweaker.LATE_REMOVALS.add(new BulkRemove("Remove Mill Recipe", MillManager.getInstance(), InputHelper.toStack(output), ItemStack.EMPTY));
|
||||
|
|
|
@ -4,18 +4,12 @@ package com.blamejared.compat.betterwithmods;
|
|||
import betterwithmods.common.registry.bulk.manager.StokedCrucibleManager;
|
||||
import betterwithmods.common.registry.bulk.recipes.StokedCrucibleRecipe;
|
||||
import com.blamejared.ModTweaker;
|
||||
import com.blamejared.compat.betterwithmods.util.BulkAdd;
|
||||
import com.blamejared.compat.betterwithmods.util.BulkRemove;
|
||||
import com.blamejared.compat.betterwithmods.util.*;
|
||||
import com.blamejared.mtlib.helpers.InputHelper;
|
||||
import crafttweaker.annotations.ModOnly;
|
||||
import crafttweaker.annotations.ZenRegister;
|
||||
import crafttweaker.api.item.IIngredient;
|
||||
import crafttweaker.api.item.IItemStack;
|
||||
import crafttweaker.annotations.*;
|
||||
import crafttweaker.api.item.*;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import stanhebben.zenscript.annotations.NotNull;
|
||||
import stanhebben.zenscript.annotations.Optional;
|
||||
import stanhebben.zenscript.annotations.ZenClass;
|
||||
import stanhebben.zenscript.annotations.ZenMethod;
|
||||
import stanhebben.zenscript.annotations.*;
|
||||
|
||||
@ZenClass("mods.betterwithmods.StokedCrucible")
|
||||
@ModOnly("betterwithmods")
|
||||
|
@ -28,6 +22,12 @@ public class StokedCrucible {
|
|||
ModTweaker.LATE_ADDITIONS.add(new BulkAdd("Set Stoked Crucible Recipe", StokedCrucibleManager.getInstance(), r));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
@Deprecated
|
||||
public static void add(IItemStack output, @Optional IItemStack secondaryOutput, @NotNull IIngredient[] inputs) {
|
||||
add(output, inputs, secondaryOutput);
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void remove(IItemStack output, @Optional IItemStack secondary) {
|
||||
ModTweaker.LATE_REMOVALS.add(new BulkRemove("Set Stoked Crucible Recipe", StokedCrucibleManager.getInstance(), InputHelper.toStack(output), secondary != null ? InputHelper.toStack(secondary) : ItemStack.EMPTY));
|
||||
|
@ -37,4 +37,10 @@ public class StokedCrucible {
|
|||
public static void remove(IItemStack output, @NotNull IIngredient[] inputs, @Optional IItemStack secondary) {
|
||||
ModTweaker.LATE_REMOVALS.add(new BulkRemove("Remove Stoked Crucible Recipe", StokedCrucibleManager.getInstance(), InputHelper.toStack(output), secondary != null ? InputHelper.toStack(secondary) : ItemStack.EMPTY, InputHelper.toObjects(inputs)));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
@Deprecated
|
||||
public static void remove(IItemStack output, @Optional IItemStack secondary, @NotNull IIngredient[] inputs) {
|
||||
remove(output, inputs, secondary);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue