BlockFluidContainerComponent
¶
文档版本:1.21.60.21
BlockFluidContainerComponent
类,扩展自BlockComponent
。script_api.minecraft/server.blockfluidcontainercomponent.description
常量¶
componentId
属性¶
fillLevel
fillLevel
:int32
- script_api.minecraft/server.blockfluidcontainercomponent.filllevel.description
fluidColor
fluidColor
:RGBA
- script_api.minecraft/server.blockfluidcontainercomponent.fluidcolor.description
方法¶
addDye
script_api.minecraft/server.blockfluidcontainercomponent.adddye.description
- 返回值:
void
- script_api.minecraft/server.blockfluidcontainercomponent.adddye.return
getFluidType
script_api.minecraft/server.blockfluidcontainercomponent.getfluidtype.description
setFluidType
script_api.minecraft/server.blockfluidcontainercomponent.setfluidtype.description
fluidType
:FluidType
- script_api.minecraft/server.blockfluidcontainercomponent.setfluidtype.fluidtype.description
- 返回值:
void
- script_api.minecraft/server.blockfluidcontainercomponent.setfluidtype.return
setPotion
script_api.minecraft/server.blockfluidcontainercomponent.setpotion.description
itemStack
:ItemStack
- script_api.minecraft/server.blockfluidcontainercomponent.setpotion.itemstack.description
- 返回值:
void
- script_api.minecraft/server.blockfluidcontainercomponent.setpotion.return