how can i pass an instance of this class into the main class ```public class PetGoal implements Goal<Mob>, Listener {
private final GoalKey<Mob> key = GoalKey.of(Mob.class, new NamespacedKey("firstplugin", "key"));
private final Mob mob;
private final LivingEntity owner;
private LivingEntity target;
private boolean attackPlayers = true;
private boolean attackMobs = true;
private double moveDistance = 3.5D;
private double maxDistance = 16D;
private double maxForgetTargetDistance = 40D;
private boolean active = true;
public PetGoal(Mob mob, LivingEntity owner){
this.mob = mob;
this.owner = owner;
}
public PetGoal(Mob mob, LivingEntity owner, boolean attackMobs, boolean attackPlayers ){
this.mob = mob;
this.owner = owner;
this.attackMobs = attackMobs;
this.attackPlayers = attackPlayers;
}```