Skip to content

Fixed Quilt issues #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions 1.20.4/common/src/main/java/org/Vrglab/Reflections/vfs/Vfs.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,29 @@ private static boolean hasInnerJarFileInPath(URL url) {
* <p>jarInputStream - creates a {@link JarInputDir} over jar files (contains ".jar!/" in it's name), using Java's JarInputStream
* */
public enum DefaultUrlTypes implements UrlType {
quilt_zfs {
@Override
public boolean matches(URL url) throws Exception {
return url.getProtocol().equals("quilt.zfs");
}

@Override
public Dir createDir(URL url) throws Exception {
return new Dir() {
@Override
public String getPath() {
return "";
}

@Override
public Iterable<File> getFiles() {
return new ArrayList<>();
}
};
}
},


union {
@Override
public boolean matches(URL url) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
package org.Vrglab.Reflections.fabriclike;

import org.Vrglab.Reflections.MCReflectionsMod;
import org.Vrglab.Reflections.Reflections;
import org.Vrglab.Reflections.scanners.Scanners;
import org.Vrglab.Reflections.util.ConfigurationBuilder;

public final class MCReflectionsModFabricLike {
public static void init() {
Reflections reflections = new Reflections(new ConfigurationBuilder().forPackage("org.Vrglab.Reflections"));
reflections.getSubTypesOf(MCReflectionsMod.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
import net.neoforged.fml.common.Mod;

import org.Vrglab.Reflections.MCReflectionsMod;
import org.Vrglab.Reflections.Reflections;
import org.Vrglab.Reflections.util.ConfigurationBuilder;

@Mod(MCReflectionsMod.MOD_ID)
public final class MCReflectionsModNeoForge {
public MCReflectionsModNeoForge() {
Reflections reflections = new Reflections(new ConfigurationBuilder().forPackage("org.Vrglab.Reflections"));
reflections.getSubTypesOf(MCReflectionsMod.class);
}
}