171819202122232425
return null; } if(!(stack.getItem() instanceof IItemFilterUpgrade)) { return null; } IItemFilterUpgrade upgrade = (IItemFilterUpgrade)stack.getItem(); IItemFilter res = upgrade.createFilterFromStack(stack); return res; }