跳转至

EntityBreathableComponent

文档版本:1.21.0.24

EntityBreathableComponent类,扩展自IEntityComponent。script_api.mojang-minecraft.entitybreathablecomponent.description

属性

breatheBlocks
read-only breatheBlocks: BlockPermutation[];
breatheBlocksBlockPermutation[]
script_api.mojang-minecraft.entitybreathablecomponent.breatheblocks.description
breathesAir
read-only breathesAir: boolean;
breathesAirboolean
script_api.mojang-minecraft.entitybreathablecomponent.breathesair.description
breathesLava
read-only breathesLava: boolean;
breathesLavaboolean
script_api.mojang-minecraft.entitybreathablecomponent.breatheslava.description
breathesSolids
read-only breathesSolids: boolean;
breathesSolidsboolean
script_api.mojang-minecraft.entitybreathablecomponent.breathessolids.description
breathesWater
read-only breathesWater: boolean;
breathesWaterboolean
script_api.mojang-minecraft.entitybreathablecomponent.breatheswater.description
generatesBubbles
read-only generatesBubbles: boolean;
generatesBubblesboolean
script_api.mojang-minecraft.entitybreathablecomponent.generatesbubbles.description
inhaleTime
read-only inhaleTime: float;
inhaleTimefloat
script_api.mojang-minecraft.entitybreathablecomponent.inhaletime.description
nonBreatheBlocks
read-only nonBreatheBlocks: BlockPermutation[];
nonBreatheBlocksBlockPermutation[]
script_api.mojang-minecraft.entitybreathablecomponent.nonbreatheblocks.description
suffocateTime
read-only suffocateTime: int32;
suffocateTimeint32
script_api.mojang-minecraft.entitybreathablecomponent.suffocatetime.description
totalSupply
read-only totalSupply: int32;
totalSupplyint32
script_api.mojang-minecraft.entitybreathablecomponent.totalsupply.description

方法

setAirSupply

script_api.mojang-minecraft.entitybreathablecomponent.setairsupply.description

setAirSupply(value: int16): void
valueint16∈[-32768, 32767]
script_api.mojang-minecraft.entitybreathablecomponent.setairsupply.value.description
返回值:void
script_api.mojang-minecraft.entitybreathablecomponent.setairsupply.return