diff --git a/Mage/src/main/java/mage/abilities/costs/CompositeCost.java b/Mage/src/main/java/mage/abilities/costs/CompositeCost.java index 34a79afc62..5f9182f293 100644 --- a/Mage/src/main/java/mage/abilities/costs/CompositeCost.java +++ b/Mage/src/main/java/mage/abilities/costs/CompositeCost.java @@ -1,10 +1,11 @@ package mage.abilities.costs; -import java.util.UUID; import mage.abilities.Ability; import mage.game.Game; import mage.target.Targets; +import java.util.UUID; + public class CompositeCost implements Cost { private final Cost firstCost; @@ -29,8 +30,9 @@ public class CompositeCost implements Cost { } @Override - public void setText(String text) { + public CompositeCost setText(String text) { this.description = text; + return this; } @Override diff --git a/Mage/src/main/java/mage/abilities/costs/Cost.java b/Mage/src/main/java/mage/abilities/costs/Cost.java index b496c55f42..303dce703f 100644 --- a/Mage/src/main/java/mage/abilities/costs/Cost.java +++ b/Mage/src/main/java/mage/abilities/costs/Cost.java @@ -14,7 +14,7 @@ public interface Cost extends Serializable, Copyable { String getText(); - void setText(String text); + Cost setText(String text); /** * Check is it possible to pay diff --git a/Mage/src/main/java/mage/abilities/costs/CostImpl.java b/Mage/src/main/java/mage/abilities/costs/CostImpl.java index 4163f3c05c..f3425f0011 100644 --- a/Mage/src/main/java/mage/abilities/costs/CostImpl.java +++ b/Mage/src/main/java/mage/abilities/costs/CostImpl.java @@ -1,11 +1,12 @@ package mage.abilities.costs; -import java.util.UUID; import mage.abilities.Ability; import mage.game.Game; import mage.target.Target; import mage.target.Targets; +import java.util.UUID; + public abstract class CostImpl implements Cost { protected UUID id; @@ -37,8 +38,9 @@ public abstract class CostImpl implements Cost { } @Override - public void setText(String text) { + public Cost setText(String text) { this.text = text; + return this; } public void addTarget(Target target) { diff --git a/Mage/src/main/java/mage/abilities/costs/CostsImpl.java b/Mage/src/main/java/mage/abilities/costs/CostsImpl.java index 496b4099ce..f330c823f0 100644 --- a/Mage/src/main/java/mage/abilities/costs/CostsImpl.java +++ b/Mage/src/main/java/mage/abilities/costs/CostsImpl.java @@ -1,18 +1,18 @@ package mage.abilities.costs; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; import mage.abilities.Ability; import mage.abilities.costs.mana.ManaCosts; import mage.abilities.costs.mana.VariableManaCost; import mage.game.Game; import mage.target.Targets; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + /** - * - * @author BetaSteward_at_googlemail.com * @param + * @author BetaSteward_at_googlemail.com */ public class CostsImpl extends ArrayList implements Costs { @@ -34,8 +34,9 @@ public class CostsImpl extends ArrayList implements Costs } @Override - public void setText(String text) { + public CostsImpl setText(String text) { this.text = text; + return this; } @Override diff --git a/Mage/src/main/java/mage/abilities/costs/OrCost.java b/Mage/src/main/java/mage/abilities/costs/OrCost.java index 63bfe4285c..c040438282 100644 --- a/Mage/src/main/java/mage/abilities/costs/OrCost.java +++ b/Mage/src/main/java/mage/abilities/costs/OrCost.java @@ -1,7 +1,6 @@ package mage.abilities.costs; -import java.util.UUID; import mage.abilities.Ability; import mage.abilities.costs.mana.ManaCost; import mage.constants.Outcome; @@ -9,6 +8,8 @@ import mage.game.Game; import mage.players.Player; import mage.target.Targets; +import java.util.UUID; + public class OrCost implements Cost { private final Cost firstCost; @@ -36,8 +37,9 @@ public class OrCost implements Cost { } @Override - public void setText(String text) { + public OrCost setText(String text) { this.description = text; + return this; } @Override diff --git a/Mage/src/main/java/mage/abilities/costs/VariableCostImpl.java b/Mage/src/main/java/mage/abilities/costs/VariableCostImpl.java index bc5d7047c3..a74b654402 100644 --- a/Mage/src/main/java/mage/abilities/costs/VariableCostImpl.java +++ b/Mage/src/main/java/mage/abilities/costs/VariableCostImpl.java @@ -55,8 +55,9 @@ public abstract class VariableCostImpl implements Cost, VariableCost { } @Override - public void setText(String text) { + public VariableCostImpl setText(String text) { this.text = text; + return this; } @Override diff --git a/Mage/src/main/java/mage/abilities/costs/mana/ManaCostsImpl.java b/Mage/src/main/java/mage/abilities/costs/mana/ManaCostsImpl.java index 7de0101755..c68c8fe9eb 100644 --- a/Mage/src/main/java/mage/abilities/costs/mana/ManaCostsImpl.java +++ b/Mage/src/main/java/mage/abilities/costs/mana/ManaCostsImpl.java @@ -508,8 +508,9 @@ public class ManaCostsImpl extends ArrayList implements M } @Override - public void setText(String text) { + public ManaCostsImpl setText(String text) { this.text = text; + return this; } @Override