How can i only set Animblueprint Class instead of all the class?

How can i only get Animblueprint Class instead of all the class?
now i can only do this to make my project work, it includes all the class , not only the animBP.
sorry im new to ue

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Inventory") UClass *AnimBP

Use TSubclassOf<UAnimInstance> instead of UClass*