importnet.minecraft.entity.ai.goal.GoalSelector;importnet.minecraft.entity.mob.MobEntity;/** * The {@code GoalUtils} class uses reflection to extend the MobEntity class * and add a public GoalSelector method. */publicclassGoalUtils{publicstaticGoalSelectorgetGoalSelector(MobEntitymobEntity){