跳转至

EntityAgeableComponent

文档版本:1.21.0.24

EntityAgeableComponent类,扩展自EntityComponent。script_api.minecraft/server.entityageablecomponent.description

常量

componentId
static read-only componentId = "minecraft:ageable";

属性

duration
read-only duration: float;
growUp
read-only growUp: Trigger;
transformToItem
read-only transformToItem: string;

方法

getDropItems

script_api.minecraft/server.entityageablecomponent.getdropitems.description

getDropItems(): string[]
getFeedItems

script_api.minecraft/server.entityageablecomponent.getfeeditems.description

getFeedItems(): EntityDefinitionFeedItem[]