mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-21 15:41:38 +01:00
Override Block#toString
This commit is contained in:
parent
bf48154aee
commit
db9906d0ae
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user