The EntityBreathableComponent class in @minecraft/server.
Class in @minecraft/server
Extends EntityComponent
import { EntityBreathableComponent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”breathesAir
Section titled “breathesAir”read-only
readonly breathesAir: boolean;breathesLava
Section titled “breathesLava”read-only
readonly breathesLava: boolean;breathesSolids
Section titled “breathesSolids”read-only
readonly breathesSolids: boolean;breathesWater
Section titled “breathesWater”read-only
readonly breathesWater: boolean;generatesBubbles
Section titled “generatesBubbles”read-only
readonly generatesBubbles: boolean;inhaleTime
Section titled “inhaleTime”read-only
readonly inhaleTime: number;suffocateTime
Section titled “suffocateTime”read-only
readonly suffocateTime: number;totalSupply
Section titled “totalSupply”read-only
readonly totalSupply: number;componentId
Section titled “componentId”static read-only
static readonly componentId = 'minecraft:breathable';Methods
Section titled “Methods”getBreatheBlocks
Section titled “getBreatheBlocks”getBreatheBlocks(): BlockPermutation[];Returns
BlockPermutation[]Types
getNonBreatheBlocks
Section titled “getNonBreatheBlocks”getNonBreatheBlocks(): BlockPermutation[];Returns
BlockPermutation[]Types