loadResource

@Nullable
abstract fun loadResource(@NotNull resource: @NotNull IResourceReader): @Nullable Any(source)

Loads the given resource and returns its in-memory representation in the Prepare stage. This method may be called multiple times.

Return

The loaded resource, which will be passed to processResource, unless it's null

Parameters

resource

The resource to be loaded

Throws

If Minecraft throws it