跳转至

EntityTypeFamilyComponent

文档版本:1.21.0.24

EntityTypeFamilyComponent类,扩展自EntityComponent。script_api.minecraft/server.entitytypefamilycomponent.description

常量

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

方法

getTypeFamilies

script_api.minecraft/server.entitytypefamilycomponent.gettypefamilies.description

getTypeFamilies(): string[]
hasTypeFamily

script_api.minecraft/server.entitytypefamilycomponent.hastypefamily.description

hasTypeFamily(typeFamily: string): boolean