*
* @return true if the action completed successfully.
*/
public boolean onShiftClick(int slot, PlayerInventory toInventory) {
ItemStack result = get(getOutputSlot());
Material resultMat = (result != null ? result.getMaterial() : null);
if (slot == getOutputSlot() + getOffset() && result != null) {
while (result != null && !result.isEmpty()) {
toInventory.add(result);
set(getOutputSlot(), null);
result = get(getOutputSlot());