Closed Ali-RS closed 4 years ago
Useful in editors.
public boolean remove(Block block) { return remove(block.getName()); } public boolean remove(String name) { if(registry.containsKey(name)) { Block remove = registry.remove(name); if (log.isTraceEnabled()) { log.trace("Removed block {} -> {}", name, remove); } return true; } return false; }
Hey @Ali-RS, thanks for the input. It can be a useful addition to the registry to be able to remove a specific block.
If you want you can create a PR for it so it will be added in the next release.
Done
Useful in editors.