API reference / @jsprismarine/prismarine / crafting/potionStacks
crafting/potionStacks
Functions
javaPotionOf()
javaPotionOf(
identifier,meta):string|undefined
Defined in: packages/prismarine/src/crafting/potionStacks.ts:29
The Java potion a Bedrock stack holds, such as minecraft:awkward for minecraft:potion of data 4.
Parameters
identifier
string
The stack's Bedrock item identifier.
meta
number
The stack's data value.
Returns
string | undefined
The Java potion, or undefined for an item that holds none or a potion Java lacks.
potionDataOf()
potionDataOf(
identifier,potion):number|undefined
Defined in: packages/prismarine/src/crafting/potionStacks.ts:41
The data value a Bedrock potion item holds a Java potion at.
Parameters
identifier
string
The Bedrock potion item: a potion, a splash potion or a lingering potion.
potion
string
The Java potion, such as minecraft:long_night_vision.
Returns
number | undefined
The data value, or undefined for a potion Bedrock has no data value for in that item.