Class FramebufferResourceLoader
java.lang.Object
foundry.veil.impl.resource.loader.FramebufferResourceLoader
- All Implemented Interfaces:
VeilResourceLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanLoad(net.minecraft.server.packs.PackType packType, net.minecraft.resources.ResourceLocation location, @Nullable Path filePath, @Nullable Path modResourcePath) Checks if the specified resource can load.VeilResource<?> load(VeilResourceManager resourceManager, net.minecraft.server.packs.resources.ResourceProvider provider, net.minecraft.server.packs.PackType packType, net.minecraft.resources.ResourceLocation location, @Nullable Path filePath, @Nullable Path modResourcePath) Loads the resource from the specified path.
-
Constructor Details
-
FramebufferResourceLoader
public FramebufferResourceLoader()
-
-
Method Details
-
canLoad
public boolean canLoad(net.minecraft.server.packs.PackType packType, net.minecraft.resources.ResourceLocation location, @Nullable @Nullable Path filePath, @Nullable @Nullable Path modResourcePath) Description copied from interface:VeilResourceLoaderChecks if the specified resource can load.- Specified by:
canLoadin interfaceVeilResourceLoader- Parameters:
packType- The type of pack the resource was loaded fromlocation- The path to load the resource fromfilePath- The file path of the resourcemodResourcePath- The path to this resource in the build folder if in a dev environment- Returns:
- If this resource loader recognizes and can load the specified extension
-
load
public VeilResource<?> load(VeilResourceManager resourceManager, net.minecraft.server.packs.resources.ResourceProvider provider, net.minecraft.server.packs.PackType packType, net.minecraft.resources.ResourceLocation location, @Nullable @Nullable Path filePath, @Nullable @Nullable Path modResourcePath) throws IOException Description copied from interface:VeilResourceLoaderLoads the resource from the specified path.- Specified by:
loadin interfaceVeilResourceLoader- Parameters:
resourceManager- The Veil resource manager instanceprovider- The provider for vanilla resourcespackType- The type of pack the resource was loaded fromlocation- The path to load the resource fromfilePath- The file path of the resourcemodResourcePath- The path to this resource in the build folder if in a dev environment- Returns:
- The loaded resource
- Throws:
IOException
-