mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-17 07:35:01 +00:00
Add toString to ObfuscationData for debugging purposes
This commit is contained in:
1 parent
244303cd3d
commit
f0dbff5076
1 file changed
+13
@@ -77,4 +77,17 @@ public class ObfuscationData<T> implements Iterable<ObfuscationType> {
|
||||
return this.data.keySet().iterator();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("ObfuscationData[%sDEFAULT=%s]", this.listValues(), this.defaultValue);
|
||||
}
|
||||
|
||||
private String listValues() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (ObfuscationType type : this.data.keySet()) {
|
||||
sb.append(type.name()).append('=').append(this.data.get(type)).append(',');
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user