Added ability to reload (also using 'dynmap reload').
This commit is contained in:
parent
ca9be50422
commit
2866eaa905
4 changed files with 34 additions and 9 deletions
|
|
@ -33,6 +33,11 @@ public class ComponentManager {
|
|||
}
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
componentLookup.clear();
|
||||
components.clear();
|
||||
}
|
||||
|
||||
public Iterable<Component> getComponents(Class<Component> c) {
|
||||
List<Component> list = componentLookup.get(c.toString());
|
||||
if (list == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue