mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-21 23:51:36 +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;
|
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) {
|
private Block compute(Map<String, String> properties) {
|
||||||
Block block = propertyEntry.get(properties);
|
Block block = propertyEntry.get(properties);
|
||||||
if (block == null)
|
if (block == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user