fixed typos and made a param optional
This commit is contained in:
parent
ea01a6e390
commit
3a444d2dce
2 changed files with 7 additions and 7 deletions
|
@ -16,7 +16,7 @@ import stanhebben.zenscript.annotations.*;
|
||||||
public class AlchemyArray {
|
public class AlchemyArray {
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void addRecipe(IItemStack output, IItemStack input, IItemStack catalyst, String textureLocation) {
|
public static void addRecipe(IItemStack output, IItemStack input, IItemStack catalyst, @Optional String textureLocation) {
|
||||||
ModTweaker.LATE_ADDITIONS.add(new Add(InputHelper.toStack(input), InputHelper.toStack(catalyst), InputHelper.toStack(output), new ResourceLocation(textureLocation)));
|
ModTweaker.LATE_ADDITIONS.add(new Add(InputHelper.toStack(input), InputHelper.toStack(catalyst), InputHelper.toStack(output), new ResourceLocation(textureLocation)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,10 @@ import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.item.crafting.Ingredient;
|
import net.minecraft.item.crafting.Ingredient;
|
||||||
import stanhebben.zenscript.annotations.*;
|
import stanhebben.zenscript.annotations.*;
|
||||||
|
|
||||||
@ZenClass("mods.bloodmagic.BloodAlter")
|
@ZenClass("mods.bloodmagic.BloodAltar")
|
||||||
@ZenRegister
|
@ZenRegister
|
||||||
@ModOnly("bloodmagic")
|
@ModOnly("bloodmagic")
|
||||||
public class BloodAlter {
|
public class BloodAltar {
|
||||||
|
|
||||||
@ZenMethod
|
@ZenMethod
|
||||||
public static void addRecipe(IItemStack output, IItemStack input, int minimumTier, int syphon, int consumeRate, int drainRate) {
|
public static void addRecipe(IItemStack output, IItemStack input, int minimumTier, int syphon, int consumeRate, int drainRate) {
|
||||||
|
@ -33,7 +33,7 @@ public class BloodAlter {
|
||||||
private int minTier, syphon, consumeRate, drainRate;
|
private int minTier, syphon, consumeRate, drainRate;
|
||||||
|
|
||||||
public Add(Ingredient input, ItemStack output, int minTier, int syphon, int consumeRate, int drainRate) {
|
public Add(Ingredient input, ItemStack output, int minTier, int syphon, int consumeRate, int drainRate) {
|
||||||
super("BloodAlter");
|
super("BloodAltar");
|
||||||
this.input = input;
|
this.input = input;
|
||||||
this.output = output;
|
this.output = output;
|
||||||
this.minTier = minTier;
|
this.minTier = minTier;
|
||||||
|
@ -49,7 +49,7 @@ public class BloodAlter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String describe() {
|
public String describe() {
|
||||||
return "Adding Blood Alter recipe for: " + output + " from: " + input + " minTier: " + minTier + ", syphon: " + syphon + ", consumeRate: " + consumeRate + ", drainRate: " + drainRate;
|
return "Adding Blood Altar recipe for: " + output + " from: " + input + " minTier: " + minTier + ", syphon: " + syphon + ", consumeRate: " + consumeRate + ", drainRate: " + drainRate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ public class BloodAlter {
|
||||||
private ItemStack input;
|
private ItemStack input;
|
||||||
|
|
||||||
public Remove(ItemStack input) {
|
public Remove(ItemStack input) {
|
||||||
super("BloodAlter");
|
super("BloodAltar");
|
||||||
this.input = input;
|
this.input = input;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ public class BloodAlter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String describe() {
|
public String describe() {
|
||||||
return "Removing Blood Alter recipe for: " + input;
|
return "Removing Blood Altar recipe for: " + input;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue