2014-06-16 07:48:43 +02:00
|
|
|
package appeng.crafting;
|
|
|
|
|
|
|
|
import appeng.api.storage.data.IAEItemStack;
|
2014-06-20 09:12:39 +02:00
|
|
|
import appeng.util.Platform;
|
2014-06-16 07:48:43 +02:00
|
|
|
|
|
|
|
public class CraftBranchFailure extends Exception
|
|
|
|
{
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 654603652836724823L;
|
|
|
|
|
|
|
|
IAEItemStack missing;
|
|
|
|
|
|
|
|
public CraftBranchFailure(IAEItemStack what, long howMany) {
|
2014-06-20 09:12:39 +02:00
|
|
|
super( "Failed: " + Platform.getItemDisplayName( what ) + " x " + howMany );
|
2014-06-16 07:48:43 +02:00
|
|
|
missing = what.copy();
|
|
|
|
missing.setStackSize( howMany );
|
|
|
|
}
|
|
|
|
}
|