Class ResourceLocation
The Minecraft used object to map the game resource location.
🏭 Constructors
constructor
ResourceLocation(domain: string, path: string): ResourceLocationParameters
- domain:
string - path:
string
Return Type
ResourceLocation
Defined in: packages/resourcepack/resourcePack.ts:82
🏷️ Properties
domain readonly
domain: stringDefined in: packages/resourcepack/resourcePack.ts:83
path readonly
path: stringDefined in: packages/resourcepack/resourcePack.ts:84
🔧 Methods
toString
toString(): stringReturn Type
string
Defined in: packages/resourcepack/resourcePack.ts:86
deconstruct static
deconstruct(path: string, appendPath: string= ''): ResourceLocationParameters
- path:
string - appendPath:
string
Return Type
ResourceLocation
Defined in: packages/resourcepack/resourcePack.ts:18
fromPath static
fromPath(location: string | ResourceLocation): ResourceLocationfrom absoluted path
Parameters
- location:
string | ResourceLocation
Return Type
ResourceLocation
Defined in: packages/resourcepack/resourcePack.ts:73
getAssetsPath static
getAssetsPath(location: string | ResourceLocation): stringParameters
- location:
string | ResourceLocation
Return Type
string
Defined in: packages/resourcepack/resourcePack.ts:77
ofBlockModelPath static
ofBlockModelPath(location: string | ResourceLocation): ResourceLocationbuild from model path
Parameters
- location:
string | ResourceLocation
Return Type
ResourceLocation
Defined in: packages/resourcepack/resourcePack.ts:47
ofBlockStatePath static
ofBlockStatePath(location: string | ResourceLocation): ResourceLocationbuild from block state path
Parameters
- location:
string | ResourceLocation
Return Type
ResourceLocation
Defined in: packages/resourcepack/resourcePack.ts:65
ofItemModelPath static
ofItemModelPath(location: string | ResourceLocation): ResourceLocationParameters
- location:
string | ResourceLocation
Return Type
ResourceLocation
Defined in: packages/resourcepack/resourcePack.ts:52
ofModelPath static
ofModelPath(location: string | ResourceLocation): ResourceLocationParameters
- location:
string | ResourceLocation
Return Type
ResourceLocation
Defined in: packages/resourcepack/resourcePack.ts:57
ofTexturePath static
ofTexturePath(location: string | ResourceLocation): ResourceLocationbuild from texture path
Parameters
- location:
string | ResourceLocation
Return Type
ResourceLocation
Defined in: packages/resourcepack/resourcePack.ts:39