live reloading

This commit is contained in:
dfsek
2020-11-27 15:53:52 -07:00
parent af6ba33921
commit 4b7b0ee7e9
3 changed files with 11 additions and 2 deletions

View File

@@ -62,4 +62,11 @@ public abstract class TerraRegistry<T> implements TypeLoader<T> {
public Set<T> entries() {
return new HashSet<>(objects.values());
}
/**
* Clears all entries from the registry.
*/
public void clear() {
objects.clear();
}
}