remove Windows support, revert new guava to small version
This commit is contained in:
parent
fd84384f10
commit
920405d8c5
264 changed files with 22715 additions and 377 deletions
|
@ -3,7 +3,7 @@ package game.entity.npc;
|
|||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.List;
|
||||
|
||||
import com.google.common.base.Predicate;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
import game.Game;
|
||||
import game.ai.AIRangedAttack;
|
||||
|
@ -275,7 +275,7 @@ public abstract class EntityNPC extends EntityLiving
|
|||
// this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityLivingBase.class, 0.6D, true, true));
|
||||
this.tasks.addTask(1, new EntityAINpcMate(this));
|
||||
this.tasks.addTask(2, new EntityAIAvoidEntity(this, EntityLiving.class, new Predicate<EntityLiving>() {
|
||||
public boolean apply(EntityLiving entity) {
|
||||
public boolean test(EntityLiving entity) {
|
||||
return entity != EntityNPC.this && EntityNPC.this.shouldFlee(entity);
|
||||
}
|
||||
}, 8.0F, 1.1D, 1.1D) {
|
||||
|
@ -302,7 +302,7 @@ public abstract class EntityNPC extends EntityLiving
|
|||
// }
|
||||
});
|
||||
this.tasks.addTask(3, new EntityAIAvoidEntity(this, EntityLiving.class, new Predicate<EntityLiving>() {
|
||||
public boolean apply(EntityLiving entity) {
|
||||
public boolean test(EntityLiving entity) {
|
||||
return entity != EntityNPC.this && EntityNPC.this.shouldFlee(entity);
|
||||
}
|
||||
}, 8.0F, 1.1D, 1.1D) {
|
||||
|
@ -365,7 +365,7 @@ public abstract class EntityNPC extends EntityLiving
|
|||
}
|
||||
});
|
||||
this.targets.addTask(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 10, true, false, new Predicate<EntityLiving>() {
|
||||
public boolean apply(EntityLiving entity) {
|
||||
public boolean test(EntityLiving entity) {
|
||||
if(entity != null && entity != EntityNPC.this && EntityNPC.this.shouldFlee(entity)) {
|
||||
EntityNPC.this.setAttackTarget(null);
|
||||
EntityNPC.this.fleeing = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue