Merge pull request #110 from MrBretze/patch-1

Added withProperties in BlockAlternative.java
This commit is contained in:
TheMode 2021-01-21 17:22:59 +01:00 committed by GitHub
commit 5eb5f32095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,16 @@ public class BlockAlternative {
}
return map;
}
public String getProperty(String key) {
for (String p : properties) {
String[] parts = p.split("=");
if (parts.length > 1)
if (parts[0].equals(key))
return parts[1];
}
return null;
}
@Override
public String toString() {