Guest User

Untitled

a guest
Mar 1st, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1.         @Override
  2.         public boolean shouldExecute()
  3.         {
  4.             double targetDistance = getTargetDistance();
  5.             /**this.player = this.livingShadow.worldObj.getNearestAttackablePlayer(this.livingShadow.posX, this.livingShadow.posY, this.livingShadow.posZ, targetDistance, targetDistance, (Function<EntityPlayer, Double>)null, new Predicate<EntityPlayer>()
  6.             {
  7.                 @Override
  8.                 public boolean apply(@Nullable EntityPlayer player)
  9.                 {
  10.                     System.out.println("Should the AI attack the player: " + AIFindPlayer.this.shouldAttackPlayer(player));
  11.                     return AIFindPlayer.this.shouldAttackPlayer(player);
  12.                 }
  13.             });**/
  14.             this.player = this.livingShadow.worldObj.getNearestAttackablePlayer(new BlockPos(livingShadow), targetDistance, targetDistance);
  15.            
  16.             return this.shouldAttackPlayer(player);
  17.         }
Add Comment
Please, Sign In to add comment