[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/java-packs](https://jsprismarine.dev/api/@jsprismarine/java-packs/index.md) / resourceLocation

# resourceLocation

## Variables

### BEDROCK\_NAMESPACE

> `const` **BEDROCK\_NAMESPACE**: `"bedrock"` = `'bedrock'`

Defined in: [resourceLocation.ts:4](https://github.com/JSPrismarine/JSPrismarine/blob/21088b69d7b227110b98eefd29702ff7304762ef/packages/java-packs/src/resourceLocation.ts#L4)

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

## Functions

### javaPath()

> **javaPath**(`path`): `string`

Defined in: [resourceLocation.ts:10](https://github.com/JSPrismarine/JSPrismarine/blob/21088b69d7b227110b98eefd29702ff7304762ef/packages/java-packs/src/resourceLocation.ts#L10)

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](https://github.com/JSPrismarine/JSPrismarine/blob/21088b69d7b227110b98eefd29702ff7304762ef/packages/java-packs/src/resourceLocation.ts#L13)

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

#### Parameters

##### path

`string`

#### Returns

`string`
