Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public boolean shouldExecute()
- {
- double targetDistance = getTargetDistance();
- /**this.player = this.livingShadow.worldObj.getNearestAttackablePlayer(this.livingShadow.posX, this.livingShadow.posY, this.livingShadow.posZ, targetDistance, targetDistance, (Function<EntityPlayer, Double>)null, new Predicate<EntityPlayer>()
- {
- @Override
- public boolean apply(@Nullable EntityPlayer player)
- {
- System.out.println("Should the AI attack the player: " + AIFindPlayer.this.shouldAttackPlayer(player));
- return AIFindPlayer.this.shouldAttackPlayer(player);
- }
- });**/
- this.player = this.livingShadow.worldObj.getNearestAttackablePlayer(new BlockPos(livingShadow), targetDistance, targetDistance);
- return this.shouldAttackPlayer(player);
- }
Add Comment
Please, Sign In to add comment