跳转至

BlockFluidContainerComponent

文档版本:1.21.60.21

BlockFluidContainerComponent类,扩展自BlockComponent。script_api.minecraft/server.blockfluidcontainercomponent.description

常量

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

属性

fillLevel
fillLevel: int32;
fluidColor
fluidColor: RGBA;

方法

addDye

script_api.minecraft/server.blockfluidcontainercomponent.adddye.description

addDye(dye: ItemType): void
getFluidType

script_api.minecraft/server.blockfluidcontainercomponent.getfluidtype.description

getFluidType(): FluidType
setFluidType

script_api.minecraft/server.blockfluidcontainercomponent.setfluidtype.description

setFluidType(fluidType: FluidType): void
setPotion

script_api.minecraft/server.blockfluidcontainercomponent.setpotion.description

setPotion(itemStack: ItemStack): void