Added withProperties in BlockAlternative.java

Example: 

blockAlternative.withProperties("facing");

Return the facing of the block a empty string
This commit is contained in:
MrBretzel 2021-01-20 20:22:54 +01:00 committed by GitHub
parent d83abcef85
commit 18ce3625c7
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 withProperties(String key) {
for (String p : properties) {
String[] parts = p.split("=");
if (parts.length > 1)
if (parts[0].equals(key))
return parts[1];
}
return "";
}
@Override
public String toString() {