Skip to content

API reference / @jsprismarine/java-packs / resourceLocation

resourceLocation ​

Variables ​

BEDROCK_NAMESPACE ​

const BEDROCK_NAMESPACE: "bedrock" = 'bedrock'

Defined in: resourceLocation.ts:4

The namespace every asset converted from a Bedrock pack is written under.

Functions ​

javaPath() ​

javaPath(path): string

Defined in: resourceLocation.ts:10

A path a Java resource location accepts: lowercase, with every character outside a-z0-9/._- made an underscore. textures/Blocks/My Stone becomes textures/blocks/my_stone.

Parameters ​

path ​

string

Returns ​

string


withoutExtension() ​

withoutExtension(path): string

Defined in: resourceLocation.ts:13

A path without its last extension: textures/blocks/stone.png is textures/blocks/stone.

Parameters ​

path ​

string

Returns ​

string