package mage.interfaces; import mage.MageException; /** * Light weight action interface. * For executing actions without any context. * * @param Type to return as a result of execution. * * @author noxx */ public interface ActionWithResult { /** * Executes and returns result. * @return */ public T execute() throws MageException; /** * Defines negative result specific for type . * @return */ public T negativeResult(); }