Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void r() {
- this.goalSit = new PathfinderGoalSit(this);
- this.goalSelector.a(1, new PathfinderGoalFloat(this));
- this.goalSelector.a(2, this.goalSit);
- this.goalSelector.a(3, new EntityWolf.a(this, EntityLlama.class, 24.0F, 1.5D, 1.5D));
- this.goalSelector.a(4, new PathfinderGoalLeapAtTarget(this, 0.4F));
- this.goalSelector.a(5, new PathfinderGoalMeleeAttack(this, 1.0D, true));
- this.goalSelector.a(6, new PathfinderGoalFollowOwner(this, 1.0D, 10.0F, 2.0F));
- this.goalSelector.a(7, new PathfinderGoalBreed(this, 1.0D));
- this.goalSelector.a(8, new PathfinderGoalRandomStrollLand(this, 1.0D));
- this.goalSelector.a(9, new PathfinderGoalBeg(this, 8.0F));
- this.goalSelector.a(10, new PathfinderGoalLookAtPlayer(this, EntityHuman.class, 8.0F));
- this.goalSelector.a(10, new PathfinderGoalRandomLookaround(this));
- this.targetSelector.a(1, new PathfinderGoalOwnerHurtByTarget(this));
- this.targetSelector.a(2, new PathfinderGoalOwnerHurtTarget(this));
- this.targetSelector.a(3, new PathfinderGoalHurtByTarget(this, true, new Class[0]));
- this.targetSelector.a(4, new PathfinderGoalRandomTargetNonTamed(this, EntityAnimal.class, false, new Predicate() {
- public boolean a(@Nullable Entity entity) {
- return entity instanceof EntitySheep || entity instanceof EntityRabbit;
- }
- public boolean apply(@Nullable Object object) {
- return this.a((Entity) object);
- }
- }));
- this.targetSelector.a(5, new PathfinderGoalNearestAttackableTarget(this, EntitySkeletonAbstract.class, false));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement