fixed typos and made a param optional

This commit is contained in:
Jared 2018-03-03 00:14:45 +02:00
parent ea01a6e390
commit 3a444d2dce
2 changed files with 7 additions and 7 deletions

View file

@ -16,7 +16,7 @@ import stanhebben.zenscript.annotations.*;
public class AlchemyArray {
@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)));
}

View file

@ -10,10 +10,10 @@ import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.Ingredient;
import stanhebben.zenscript.annotations.*;
@ZenClass("mods.bloodmagic.BloodAlter")
@ZenClass("mods.bloodmagic.BloodAltar")
@ZenRegister
@ModOnly("bloodmagic")
public class BloodAlter {
public class BloodAltar {
@ZenMethod
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;
public Add(Ingredient input, ItemStack output, int minTier, int syphon, int consumeRate, int drainRate) {
super("BloodAlter");
super("BloodAltar");
this.input = input;
this.output = output;
this.minTier = minTier;
@ -49,7 +49,7 @@ public class BloodAlter {
@Override
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;
public Remove(ItemStack input) {
super("BloodAlter");
super("BloodAltar");
this.input = input;
}
@ -69,7 +69,7 @@ public class BloodAlter {
@Override
public String describe() {
return "Removing Blood Alter recipe for: " + input;
return "Removing Blood Altar recipe for: " + input;
}
}
}