Override Block#toString

This commit is contained in:
TheMode 2021-08-01 13:01:56 +02:00
parent bf48154aee
commit db9906d0ae

View File

@ -145,6 +145,15 @@ final class BlockImpl implements Block {
return nbt != null ? tag.read(nbt) : null;
}
@Override
public String toString() {
return name() + "{" +
"properties=" + properties +
", nbt=" + nbt +
", handler=" + handler +
'}';
}
private Block compute(Map<String, String> properties) {
Block block = propertyEntry.get(properties);
if (block == null)