blob: e3fdc9ae0a9fee8bd2e0f11f64f656653f31cac1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package gtPlusPlus.xmod.bartworks;
import net.minecraft.item.ItemStack;
import com.github.bartimaeusnek.bartworks.system.material.Werkstoff;
import com.github.bartimaeusnek.bartworks.system.material.WerkstoffLoader;
import gregtech.api.enums.OrePrefixes;
public class BW_Utils {
public static ItemStack getCorrespondingItemStack(OrePrefixes orePrefixes, short werkstoffID, int amount) {
Werkstoff werkstoff = Werkstoff.werkstoffHashMap.get(werkstoffID);
if (werkstoff == null) return null;
return WerkstoffLoader.getCorrespondingItemStackUnsafe(orePrefixes, werkstoff, amount);
}
}
|