use of org.terasology.reflection.ModuleTypeRegistry in project Terasology by MovingBlocks.
the class ModuleEnvironmentTest method before.
@BeforeEach
public void before(@TempDir Path tempHome) throws Exception {
PathManager.getInstance().useOverrideHomePath(tempHome);
moduleManager = ModuleManagerFactory.create();
TypeRegistry.WHITELISTED_CLASSES = ExternalApiWhitelist.CLASSES.stream().map(Class::getName).collect(Collectors.toSet());
TypeRegistry.WHITELISTED_PACKAGES = ExternalApiWhitelist.PACKAGES;
typeRegistry = new ModuleTypeRegistry(moduleManager.getEnvironment());
setup();
}
Aggregations