author | ms.author | ms.service | title | description | monikerRange |
---|---|---|---|---|---|
jakeshirley |
jashir |
minecraft-bedrock-edition |
minecraft/server.ItemPotionComponent Class |
Contents of the @minecraft/server.ItemPotionComponent class. |
=minecraft-bedrock-experimental |
Caution
This class is still in pre-release. Its signature may change or it may be removed in future releases.
When present on an item, this item is a potion item.
read-only potionEffectType: PotionEffectType;
The PotionEffectType associated with the potion item.
Type: PotionEffectType
Warning
This property can throw errors when used.
read-only potionLiquidType: PotionLiquidType;
The PotionLiquidType associated with the potion item.
Type: PotionLiquidType
Warning
This property can throw errors when used.
read-only potionModifierType: PotionModifierType;
The PotionModifierType associated with the potion item.
Type: PotionModifierType
Warning
This property can throw errors when used.
static read-only componentId = "minecraft:potion";
Type: string