Added ability to reload (also using 'dynmap reload').

This commit is contained in:
FrozenCow 2011-05-22 19:42:47 +02:00
parent ca9be50422
commit 2866eaa905
4 changed files with 34 additions and 9 deletions

View file

@ -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)