IResourceLoader

A wrapper interface around Minecraft and the Fabric Resource Loader API.

See also

net.fabricmc.fabric.api.resource

Types

Link copied to clipboard
interface IFactory
Represents a LiLaC resource loader factory.

Functions

Link copied to clipboard
abstract fun canLoad(@NotNull resourceName: @NotNull String): Boolean
Returns whether the current resource loader can load a resource with a given file name.
abstract fun canLoad(@NotNull resourcePath: @NotNull Identifier): Boolean
Returns whether the current resource loader can load a resource at the given path.
Link copied to clipboard
@NotNull
abstract fun getStartingPath(): @NotNull String
Returns the starting folder where the resource search should be started.
Link copied to clipboard
@Nullable
abstract fun loadResource(@NotNull resource: @NotNull IResourceReader): @Nullable Any
Loads the given resource and returns its in-memory representation in the Prepare stage.
Link copied to clipboard
abstract fun processResource(@NotNull resource: @NotNull Any)
Processes the loaded resource from loadResource in the Apply stage.

Inherited functions

Link copied to clipboard
abstract fun close()