跳转至

BlockWaterContainerComponent

文档版本:1.21.0.24

BlockWaterContainerComponent类,扩展自BlockLiquidContainerComponent。script_api.minecraft/server.blockwatercontainercomponent.description

常量

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

方法

addDye

script_api.minecraft/server.blockwatercontainercomponent.adddye.description

addDye(itemType: ItemType): void
getCustomColor

script_api.minecraft/server.blockwatercontainercomponent.getcustomcolor.description

getCustomColor(): RGBA
setCustomColor

script_api.minecraft/server.blockwatercontainercomponent.setcustomcolor.description

setCustomColor(color: RGBA): void