The Potions class in @minecraft/server.
Class in @minecraft/server
import { Potions } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Methods
Section titled “Methods”getAllDeliveryTypes
Section titled “getAllDeliveryTypes”static
static getAllDeliveryTypes(): PotionDeliveryType[];Returns
PotionDeliveryType[]Types
getAllEffectTypes
Section titled “getAllEffectTypes”static
static getAllEffectTypes(): PotionEffectType[];Returns
PotionEffectType[]Types
getDeliveryType
Section titled “getDeliveryType”static
static getDeliveryType(potionDeliveryId: string): PotionDeliveryType | undefined;Parameters
potionDeliveryIdstring
Returns
PotionDeliveryType | undefinedTypes
getEffectType
Section titled “getEffectType”static
static getEffectType(potionEffectId: string): PotionEffectType | undefined;Parameters
potionEffectIdstring
Returns
PotionEffectType | undefinedTypes
resolve
Section titled “resolve”static
static resolve( potionEffectType: PotionEffectType | string, potionDeliveryType: PotionDeliveryType | string,): ItemStack;Parameters
potionEffectTypePotionEffectType | stringpotionDeliveryTypePotionDeliveryType | string
Returns
ItemStack