EntityBreathableComponent¶
文档版本:1.21.60.21
EntityBreathableComponent类,扩展自EntityComponent。script_api.minecraft/server.entitybreathablecomponent.description
常量¶
componentId
属性¶
airSupply
airSupply:int16- script_api.minecraft/server.entitybreathablecomponent.airsupply.description
breathesAir
breathesAir:boolean- script_api.minecraft/server.entitybreathablecomponent.breathesair.description
breathesLava
breathesLava:boolean- script_api.minecraft/server.entitybreathablecomponent.breatheslava.description
breathesSolids
breathesSolids:boolean- script_api.minecraft/server.entitybreathablecomponent.breathessolids.description
breathesWater
breathesWater:boolean- script_api.minecraft/server.entitybreathablecomponent.breatheswater.description
canBreathe
canBreathe:boolean- script_api.minecraft/server.entitybreathablecomponent.canbreathe.description
generatesBubbles
generatesBubbles:boolean- script_api.minecraft/server.entitybreathablecomponent.generatesbubbles.description
inhaleTime
inhaleTime:float- script_api.minecraft/server.entitybreathablecomponent.inhaletime.description
suffocateTime
suffocateTime:int32- script_api.minecraft/server.entitybreathablecomponent.suffocatetime.description
totalSupply
totalSupply:int32- script_api.minecraft/server.entitybreathablecomponent.totalsupply.description
方法¶
getBreatheBlocks
script_api.minecraft/server.entitybreathablecomponent.getbreatheblocks.description
getNonBreatheBlocks
script_api.minecraft/server.entitybreathablecomponent.getnonbreatheblocks.description