Reduce merge conflicts with shader-sanity

This commit is contained in:
Jozufozu 2022-01-07 11:50:01 -08:00
parent c0ddc860d9
commit d1ee71de4e
5 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@ run/
.gradle/
build/
gradle-app.setting
out/
## IntelliJ IDEA

View File

@ -62,7 +62,7 @@ public class FileResolution {
* Called after all files are loaded. If we can't find the file here, it doesn't exist.
* </p>
*/
void resolve(SourceHolder sources) {
void resolve(SourceFinder sources) {
try {
file = sources.findSource(fileLoc);

View File

@ -28,7 +28,7 @@ public class Resolver {
/**
* Try and resolve all referenced source files, printing errors if any aren't found.
*/
public void resolve(SourceHolder sources) {
public void resolve(SourceFinder sources) {
for (FileResolution resolution : resolutions.values()) {
resolution.resolve(sources);
}

View File

@ -17,7 +17,7 @@ import net.minecraft.server.packs.resources.ResourceManager;
/**
* The main object for loading and parsing source files.
*/
public class ShaderSources implements SourceHolder {
public class ShaderSources implements SourceFinder {
public static final String SHADER_DIR = "flywheel/shaders/";
public static final ArrayList<String> EXTENSIONS = Lists.newArrayList(".vert", ".vsh", ".frag", ".fsh", ".glsl");

View File

@ -6,7 +6,7 @@ import net.minecraft.resources.ResourceLocation;
* A minimal source file lookup function.
*/
@FunctionalInterface
public interface SourceHolder {
public interface SourceFinder {
SourceFile findSource(ResourceLocation name);
}