CraftAIPart(AIController<E> controller, B behavior) {
   this.controller = controller;
   this.behavior = behavior;
   this.priority = behavior.getPriority(controller.lastBehaviorPriority);
   controller.lastBehaviorPriority = Math.max(controller.lastBehaviorPriority, this.priority);
   this.goal = behavior.createPathfinderGoal(controller.mob);
   this.type = behavior.getType();
 }
 public static <B extends XBreakpoint> String getDisplayText(@NotNull B breakpoint) {
   //noinspection unchecked
   return breakpoint.getType().getDisplayText(breakpoint);
 }
 public static <B extends XBreakpoint> String getShortText(B breakpoint) {
   //noinspection unchecked
   return StringUtil.shortenTextWithEllipsis(
       StringUtil.notNullize(breakpoint.getType().getShortText(breakpoint)), 70, 5);
 }