跳转至

BlockPotionContainerComponent

文档版本:1.21.0.24

BlockPotionContainerComponent类,扩展自BlockLiquidContainerComponent。script_api.minecraft/server.blockpotioncontainercomponent.description

常量

componentId
static read-only componentId = "minecraft:potionContainer";

方法

setPotionType

script_api.minecraft/server.blockpotioncontainercomponent.setpotiontype.description

setPotionType(itemStack: ItemStack): void