blob: 2802e2f2e4572bd832e2a0707f46a557b86dd2a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package gtPlusPlus.xmod.bartworks;
import net.minecraft.item.ItemStack;
import bartworks.system.material.Werkstoff;
import bartworks.system.material.WerkstoffLoader;
import gregtech.api.enums.OrePrefixes;
public class BWUtils {
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);
}
}
|