mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Somewhat more explicit method name.
This commit is contained in:
@@ -94,7 +94,7 @@ public class Cost implements Serializable {
|
||||
return true;
|
||||
}
|
||||
|
||||
public <T extends CostPart> T getCostPart(Class<T> costType) {
|
||||
public <T extends CostPart> T getCostPartByType(Class<T> costType) {
|
||||
for (CostPart p : getCostParts()) {
|
||||
if (costType.isInstance(p)) {
|
||||
return (T)p;
|
||||
|
||||
Reference in New Issue
Block a user