Skip to content

Interface ResourceLoader

🔧 Methods

get

ts
get(location: ResourceLocation): Promise<undefined | Resource>

Get the resource in that location. This will walk through current resource source list to load the resource.

Parameters

  • location: ResourceLocation The resource location

Return Type

  • Promise<undefined | Resource>

Defined in: packages/resourcepack/resourceManager.ts:15