Advertisement
Guest User

Untitled

a guest
Feb 15th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. protected void r() {
  2. this.goalSit = new PathfinderGoalSit(this);
  3. this.goalSelector.a(1, new PathfinderGoalFloat(this));
  4. this.goalSelector.a(2, this.goalSit);
  5. this.goalSelector.a(3, new EntityWolf.a(this, EntityLlama.class, 24.0F, 1.5D, 1.5D));
  6. this.goalSelector.a(4, new PathfinderGoalLeapAtTarget(this, 0.4F));
  7. this.goalSelector.a(5, new PathfinderGoalMeleeAttack(this, 1.0D, true));
  8. this.goalSelector.a(6, new PathfinderGoalFollowOwner(this, 1.0D, 10.0F, 2.0F));
  9. this.goalSelector.a(7, new PathfinderGoalBreed(this, 1.0D));
  10. this.goalSelector.a(8, new PathfinderGoalRandomStrollLand(this, 1.0D));
  11. this.goalSelector.a(9, new PathfinderGoalBeg(this, 8.0F));
  12. this.goalSelector.a(10, new PathfinderGoalLookAtPlayer(this, EntityHuman.class, 8.0F));
  13. this.goalSelector.a(10, new PathfinderGoalRandomLookaround(this));
  14. this.targetSelector.a(1, new PathfinderGoalOwnerHurtByTarget(this));
  15. this.targetSelector.a(2, new PathfinderGoalOwnerHurtTarget(this));
  16. this.targetSelector.a(3, new PathfinderGoalHurtByTarget(this, true, new Class[0]));
  17. this.targetSelector.a(4, new PathfinderGoalRandomTargetNonTamed(this, EntityAnimal.class, false, new Predicate() {
  18. public boolean a(@Nullable Entity entity) {
  19. return entity instanceof EntitySheep || entity instanceof EntityRabbit;
  20. }
  21.  
  22. public boolean apply(@Nullable Object object) {
  23. return this.a((Entity) object);
  24. }
  25. }));
  26. this.targetSelector.a(5, new PathfinderGoalNearestAttackableTarget(this, EntitySkeletonAbstract.class, false));
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement