mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-20 04:19:44 +00:00
Aura Cascade support!
This commit is contained in:
1 parent
d35d9b1f69
commit
aeb42cd64e
14 files changed
+320
-1
No files matched your search
@@ -0,0 +1,28 @@
|
||||
package modtweaker2.mods.auracascade;
|
||||
|
||||
import mekanism.api.gas.GasRegistry;
|
||||
import mekanism.api.gas.GasStack;
|
||||
import minetweaker.api.item.IIngredient;
|
||||
import modtweaker2.mods.auracascade.aura.IAuraStack;
|
||||
import modtweaker2.mods.mekanism.gas.IGasStack;
|
||||
import pixlepix.auracascade.data.AuraQuantity;
|
||||
import pixlepix.auracascade.data.EnumAura;
|
||||
|
||||
public class AuraCascadeHelper {
|
||||
public static AuraQuantity toAura(IAuraStack iStack) {
|
||||
if (iStack == null) {
|
||||
return null;
|
||||
} else return new AuraQuantity(EnumAura.valueOf(iStack.getName()), iStack.getAmount());
|
||||
}
|
||||
|
||||
// public static GasStack[] toGases(IIngredient[] input) {
|
||||
// return toGases((IGasStack[]) input);
|
||||
// }
|
||||
//
|
||||
// public static GasStack[] toGases(IGasStack[] iStack) {
|
||||
// GasStack[] stack = new GasStack[iStack.length];
|
||||
// for (int i = 0; i < stack.length; i++)
|
||||
// stack[i] = toGas(iStack[i]);
|
||||
// return stack;
|
||||
// }
|
||||
}
|
||||
Reference in new issue
Block a user