Private
constructorReadonly
breathesIf true, this entity can breathe in air.
This property can throw when used.
Readonly
breathesIf true, this entity can breathe in lava.
This property can throw when used.
Readonly
breathesIf true, this entity can breathe in solid blocks.
This property can throw when used.
Readonly
breathesIf true, this entity can breathe in water.
This property can throw when used.
Readonly
entityThe entity that owns this component. The entity will be undefined if it has been removed.
Readonly
generatesIf true, this entity will have visible bubbles while in water.
This property can throw when used.
Readonly
inhaleTime in seconds to recover breath to maximum.
This property can throw when used.
Readonly
suffocateTime in seconds between suffocation damage.
This property can throw when used.
Readonly
totalTime in seconds the entity can hold its breath.
This property can throw when used.
Readonly
typeIdentifier of the component.
Static
Readonly
componentList of blocks this entity can breathe in, in addition to the separate properties for classes of blocks.
This function can throw errors.
List of blocks this entity can't breathe in.
This function can throw errors.
Defines what blocks this entity can breathe in and gives them the ability to suffocate.
Example
pigBreathable.js