コード例 #1
0
 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();
 }
コード例 #2
0
 public static <B extends XBreakpoint> String getDisplayText(@NotNull B breakpoint) {
   //noinspection unchecked
   return breakpoint.getType().getDisplayText(breakpoint);
 }
コード例 #3
0
 public static <B extends XBreakpoint> String getShortText(B breakpoint) {
   //noinspection unchecked
   return StringUtil.shortenTextWithEllipsis(
       StringUtil.notNullize(breakpoint.getType().getShortText(breakpoint)), 70, 5);
 }