Represents the fluid container of a block in the world. Used with blocks like cauldrons.
只读
Block instance that this component pertains to.
世界修改
Relative fill level of the fluid container.
Custom color of the fluid in the container.
预览版
Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.
Identifier of the component.
静态
Adds a dye to the fluid. The dye color is combined with any existing custom color.
This function can throw errors.
Gets the current fluid type in the container.
Sets the current fluid type in the container.
Sets a potion item in the container. Changes the container's fluid type to potion.
Represents the fluid container of a block in the world. Used with blocks like cauldrons.