Class Resolver

java.lang.Object
com.jozufozu.flywheel.core.source.Resolver

public class Resolver extends Object
Manages deferred file resolution.

Interns all file names in shader sources and program specs, deduplicating the final lookups and allowing for more dev-friendly error reporting.

See Also:
  • Field Details

    • INSTANCE

      public static final Resolver INSTANCE
  • Constructor Details

    • Resolver

      public Resolver()
  • Method Details

    • get

      public FileResolution get(net.minecraft.resources.ResourceLocation file)
    • run

      public void run(SourceFinder sources)
      Try and resolve all referenced source files, printing errors if any aren't found.
    • invalidate

      public void invalidate()
      Invalidates all FileResolutions.

      Called on resource reload.