Java 类net.minecraft.entity.ai.EntityAIWatchClosest2 实例源码
项目:DecompiledMinecraft
文件:EntityVillager.java
public EntityVillager(World worldIn, int professionId)
{
super(worldIn);
this.villagerInventory = new InventoryBasic("Items", false, 8);
this.setProfession(professionId);
this.setSize(0.6F, 1.8F);
((PathNavigateGround)this.getNavigator()).setBreakDoors(true);
((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIVillagerInteract(this));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
this.setCanPickUpLoot(true);
}
项目:DecompiledMinecraft
文件:EntityVillager.java
public EntityVillager(World worldIn, int professionId)
{
super(worldIn);
this.villagerInventory = new InventoryBasic("Items", false, 8);
this.setProfession(professionId);
this.setSize(0.6F, 1.8F);
((PathNavigateGround)this.getNavigator()).setBreakDoors(true);
((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIVillagerInteract(this));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
this.setCanPickUpLoot(true);
}
项目:BaseClient
文件:EntityVillager.java
public EntityVillager(World worldIn, int professionId)
{
super(worldIn);
this.villagerInventory = new InventoryBasic("Items", false, 8);
this.setProfession(professionId);
this.setSize(0.6F, 1.8F);
((PathNavigateGround)this.getNavigator()).setBreakDoors(true);
((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIVillagerInteract(this));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
this.setCanPickUpLoot(true);
}
项目:BaseClient
文件:EntityVillager.java
public EntityVillager(World worldIn, int professionId)
{
super(worldIn);
this.villagerInventory = new InventoryBasic("Items", false, 8);
this.setProfession(professionId);
this.setSize(0.6F, 1.8F);
((PathNavigateGround)this.getNavigator()).setBreakDoors(true);
((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIVillagerInteract(this));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
this.setCanPickUpLoot(true);
}
项目:Backmemed
文件:EntityVillager.java
protected void initEntityAI()
{
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityEvoker.class, 12.0F, 0.8D, 0.8D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityVindicator.class, 8.0F, 0.8D, 0.8D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityVex.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIVillagerInteract(this));
this.tasks.addTask(9, new EntityAIWanderAvoidWater(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:CustomWorldGen
文件:EntityVillager.java
protected void initEntityAI()
{
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIVillagerInteract(this));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:amunra
文件:EntityARVillager.java
public EntityARVillager(World par1World)
{
super(par1World);
this.randomTickDivider = 0;
this.isMating = false;
this.isPlaying = false;
this.villageObj = null;
this.setSize(0.6F, 2.35F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.3F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 15.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityVillager.class, 15.0F, 0.05F));
this.tasks.addTask(9, new EntityAIWander(this, 0.3F));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 15.0F));
}
项目:Resilience-Client-Source
文件:EntityVillager.java
public EntityVillager(World par1World, int par2)
{
super(par1World);
this.setProfession(par2);
this.setSize(0.6F, 1.8F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(8, new EntityAIPlay(this, 0.32D));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityVillager.class, 5.0F, 0.02F));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:Rediscovered-Mod-1.8.8
文件:EntityGreenVillager.java
public EntityGreenVillager(World worldIn, int professionId)
{
super(worldIn);
this.villagerInventory = new InventoryBasic("Items", false, 8);
this.setProfession(professionId);
this.setSize(0.6F, 1.8F);
((PathNavigateGround)this.getNavigator()).setBreakDoors(true);
((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradeGreen(this));
this.tasks.addTask(1, new EntityAILookAtTradeGreen(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
this.setCanPickUpLoot(true);
}
项目:Rediscovered-Mod-1.8.8
文件:EntityRana.java
public EntityRana(World par1World, int par2)
{
super(par1World);
randomTickDivider = 0;
isPlayingFlag = false;
villageObj = null;
setProfession(par2);
dead = false;
((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntitySkeleton.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntitySpider.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityTNTPrimed.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityCreeper.class, 8.0F, 0.6D, 0.6D));
tasks.addTask(5, new EntityAIMoveIndoors(this));
tasks.addTask(6, new EntityAIRestrictOpenDoor(this));
tasks.addTask(7, new EntityAIOpenDoor(this, true));
tasks.addTask(8, new EntityAIMoveTowardsRestriction(this, 0.3F));
tasks.addTask(9, new EntityAIWatchClosest2(this, net.minecraft.entity.player.EntityPlayer.class, 3F, 1.0F));
tasks.addTask(10, new EntityAIWatchClosest2(this, net.minecraft.entity.passive.EntityVillager.class, 5F, 0.02F));
tasks.addTask(11, new EntityAIWatchClosest2(this, com.stormister.rediscovered.EntityRana.class, 5F, 0.02F));
tasks.addTask(12, new EntityAIWatchClosest2(this, com.stormister.rediscovered.EntitySteve.class, 5F, 0.02F));
tasks.addTask(13, new EntityAIWander(this, 0.3F));
tasks.addTask(14, new EntityAIWatchClosest(this, net.minecraft.entity.EntityLiving.class, 8F));
}
项目:Rediscovered-Mod-1.8.8
文件:EntityPigman.java
public EntityPigman(World worldIn, int professionId)
{
super(worldIn);
this.villagerInventory = new InventoryBasic("Items", false, 8);
this.setProfession(professionId);
this.setSize(0.6F, 1.8F);
((PathNavigateGround)this.getNavigator()).setBreakDoors(true);
((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePigman(this));
this.tasks.addTask(1, new EntityAILookAtTradePigman(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIPigmanMate(this));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
this.setCanPickUpLoot(true);
}
项目:4Space-1.7
文件:EntityVenusianVillager.java
public EntityVenusianVillager(World par1World) {
super(par1World);
this.randomTickDivider = 0;
this.villageObj = null;
this.setSize(0.6F, 1.8F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.3F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 15.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityVillager.class, 15.0F, 0.05F));
this.tasks.addTask(9, new EntityAIWander(this, 0.3F));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 15.0F));
}
项目:Magicians-Artifice
文件:EntityMagician.java
public EntityMagician(World world) {
super(world);
this.setSize(0.6F, 1.8F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(8, new EntityAIPlay(this, 0.32D));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityVillager.class, 5.0F, 0.02F));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:ExpandedRailsMod
文件:EntityVillager.java
protected void initEntityAI()
{
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIVillagerInteract(this));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:Cauldron
文件:EntityVillager.java
public EntityVillager(World p_i1748_1_, int p_i1748_2_)
{
super(p_i1748_1_);
this.setProfession(p_i1748_2_);
this.setSize(0.6F, 1.8F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(8, new EntityAIPlay(this, 0.32D));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityVillager.class, 5.0F, 0.02F));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:Cauldron
文件:EntityVillager.java
public EntityVillager(World p_i1748_1_, int p_i1748_2_)
{
super(p_i1748_1_);
this.setProfession(p_i1748_2_);
this.setSize(0.6F, 1.8F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(8, new EntityAIPlay(this, 0.32D));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityVillager.class, 5.0F, 0.02F));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:Rediscovered-Mod-1.6.4
文件:EntityGreenVillager.java
public EntityGreenVillager(World par1World, int par2)
{
super(par1World);
this.randomTickDivider = 0;
this.isMating = false;
this.isPlaying = false;
this.villageObj = null;
this.setProfession(par2);
this.setSize(0.6F, 1.8F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.3F, 0.35F));
this.tasks.addTask(1, new EntityAITradeGreen(this));
this.tasks.addTask(1, new EntityAILookAtTradeGreen(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.3F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityVillager.class, 5.0F, 0.02F));
this.tasks.addTask(9, new EntityAIWander(this, 0.3F));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:Rediscovered-Mod-1.6.4
文件:EntityRana.java
public EntityRana(World par1World, int par2)
{
super(par1World);
randomTickDivider = 0;
isPlayingFlag = false;
villageObj = null;
setProfession(par2);
dead = false;
getNavigator().setBreakDoors(true);
getNavigator().setAvoidsWater(true);
tasks.addTask(0, new EntityAISwimming(this));
tasks.addTask(1, new EntityAIAvoidEntity(this, net.minecraft.entity.monster.EntityZombie.class, 8F, 0.3F, 0.35F));
tasks.addTask(2, new EntityAIAvoidEntity(this, net.minecraft.entity.monster.EntitySkeleton.class, 8F, 0.3F, 0.35F));
tasks.addTask(3, new EntityAIAvoidEntity(this, net.minecraft.entity.monster.EntitySpider.class, 8F, 0.3F, 0.35F));
tasks.addTask(4, new EntityAIAvoidEntity(this, net.minecraft.entity.monster.EntityCreeper.class, 8F, 0.3F, 0.35F));
tasks.addTask(5, new EntityAIMoveIndoors(this));
tasks.addTask(6, new EntityAIRestrictOpenDoor(this));
tasks.addTask(7, new EntityAIOpenDoor(this, true));
tasks.addTask(8, new EntityAIMoveTowardsRestriction(this, 0.3F));
tasks.addTask(9, new EntityAIWatchClosest2(this, net.minecraft.entity.player.EntityPlayer.class, 3F, 1.0F));
tasks.addTask(10, new EntityAIWatchClosest2(this, net.minecraft.entity.passive.EntityVillager.class, 5F, 0.02F));
tasks.addTask(11, new EntityAIWatchClosest2(this, RediscoveredMod.EntityRana.class, 5F, 0.02F));
tasks.addTask(12, new EntityAIWatchClosest2(this, RediscoveredMod.EntitySteve.class, 5F, 0.02F));
tasks.addTask(13, new EntityAIWander(this, 0.3F));
tasks.addTask(14, new EntityAIWatchClosest(this, net.minecraft.entity.EntityLiving.class, 8F));
}
项目:Rediscovered-Mod-1.6.4
文件:EntityPigman.java
public EntityPigman(World par1World, int par2)
{
super(par1World);
this.randomTickDivider = 0;
this.isMating = false;
this.isPlaying = false;
this.villageObj = null;
this.setSize(0.6F, 1.8F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.3F, 0.35F));
this.tasks.addTask(1, new EntityAITradePigman(this));
this.tasks.addTask(1, new EntityAILookAtTradePigman(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.3F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityVillager.class, 5.0F, 0.02F));
this.tasks.addTask(9, new EntityAIWander(this, 0.3F));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:ZeldaSwordSkills
文件:EntityNpcBase.java
public EntityNpcBase(World world) {
super(world);
this.setSize(0.6F, 1.8F);
this.enablePersistence();
((PathNavigateGround) this.getNavigator()).setBreakDoors(true);
((PathNavigateGround) this.getNavigator()).setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity<Entity>(this, Entity.class, new Predicate<Entity>() {
public boolean apply(Entity entity) {
return entity instanceof IMob;
}
}, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:RuneCraftery
文件:EntityVillager.java
public EntityVillager(World p_i1748_1_, int p_i1748_2_) {
super(p_i1748_1_);
this.func_70938_b(p_i1748_2_);
this.func_70105_a(0.6F, 1.8F);
this.func_70661_as().func_75498_b(true);
this.func_70661_as().func_75491_a(true);
this.field_70714_bg.func_75776_a(0, new EntityAISwimming(this));
this.field_70714_bg.func_75776_a(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.field_70714_bg.func_75776_a(1, new EntityAITradePlayer(this));
this.field_70714_bg.func_75776_a(1, new EntityAILookAtTradePlayer(this));
this.field_70714_bg.func_75776_a(2, new EntityAIMoveIndoors(this));
this.field_70714_bg.func_75776_a(3, new EntityAIRestrictOpenDoor(this));
this.field_70714_bg.func_75776_a(4, new EntityAIOpenDoor(this, true));
this.field_70714_bg.func_75776_a(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.field_70714_bg.func_75776_a(6, new EntityAIVillagerMate(this));
this.field_70714_bg.func_75776_a(7, new EntityAIFollowGolem(this));
this.field_70714_bg.func_75776_a(8, new EntityAIPlay(this, 0.32D));
this.field_70714_bg.func_75776_a(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.field_70714_bg.func_75776_a(9, new EntityAIWatchClosest2(this, EntityVillager.class, 5.0F, 0.02F));
this.field_70714_bg.func_75776_a(9, new EntityAIWander(this, 0.6D));
this.field_70714_bg.func_75776_a(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:RuneCraftery
文件:EntityVillager.java
public EntityVillager(World par1World, int par2)
{
super(par1World);
this.setProfession(par2);
this.setSize(0.6F, 1.8F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(8, new EntityAIPlay(this, 0.32D));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityVillager.class, 5.0F, 0.02F));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:Rediscovered-Mod-1.7.10
文件:EntityGreenVillager.java
public EntityGreenVillager(World par1World, int par2)
{
super(par1World);
this.setProfession(par2);
this.setSize(0.6F, 1.8F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradeGreen(this));
this.tasks.addTask(1, new EntityAILookAtTradeGreen(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityVillager.class, 5.0F, 0.02F));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:Rediscovered-Mod-1.7.10
文件:EntityRana.java
public EntityRana(World par1World, int par2)
{
super(par1World);
randomTickDivider = 0;
isPlayingFlag = false;
villageObj = null;
setProfession(par2);
dead = false;
getNavigator().setBreakDoors(true);
getNavigator().setAvoidsWater(true);
tasks.addTask(0, new EntityAISwimming(this));
tasks.addTask(1, new EntityAIAvoidEntity(this, net.minecraft.entity.monster.EntityZombie.class, 8F, 0.3F, 0.35F));
tasks.addTask(2, new EntityAIAvoidEntity(this, net.minecraft.entity.monster.EntitySkeleton.class, 8F, 0.3F, 0.35F));
tasks.addTask(3, new EntityAIAvoidEntity(this, net.minecraft.entity.monster.EntitySpider.class, 8F, 0.3F, 0.35F));
tasks.addTask(4, new EntityAIAvoidEntity(this, net.minecraft.entity.monster.EntityCreeper.class, 8F, 0.3F, 0.35F));
tasks.addTask(5, new EntityAIMoveIndoors(this));
tasks.addTask(6, new EntityAIRestrictOpenDoor(this));
tasks.addTask(7, new EntityAIOpenDoor(this, true));
tasks.addTask(8, new EntityAIMoveTowardsRestriction(this, 0.3F));
tasks.addTask(9, new EntityAIWatchClosest2(this, net.minecraft.entity.player.EntityPlayer.class, 3F, 1.0F));
tasks.addTask(10, new EntityAIWatchClosest2(this, net.minecraft.entity.passive.EntityVillager.class, 5F, 0.02F));
tasks.addTask(11, new EntityAIWatchClosest2(this, com.stormister.rediscovered.EntityRana.class, 5F, 0.02F));
tasks.addTask(12, new EntityAIWatchClosest2(this, com.stormister.rediscovered.EntitySteve.class, 5F, 0.02F));
tasks.addTask(13, new EntityAIWander(this, 0.3F));
tasks.addTask(14, new EntityAIWatchClosest(this, net.minecraft.entity.EntityLiving.class, 8F));
}
项目:Rediscovered-Mod-1.7.10
文件:EntityPigman.java
public EntityPigman(World par1World, int par2)
{
super(par1World);
this.setProfession(par2);
this.setSize(0.6F, 1.8F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePigman(this));
this.tasks.addTask(1, new EntityAILookAtTradePigman(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPigman.class, 5.0F, 0.02F));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:BetterNutritionMod
文件:EntityVillager.java
public EntityVillager(World par1World, int par2)
{
super(par1World);
this.setProfession(par2);
this.setSize(0.6F, 1.8F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePlayer(this));
this.tasks.addTask(1, new EntityAILookAtTradePlayer(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIVillagerMate(this));
this.tasks.addTask(7, new EntityAIFollowGolem(this));
this.tasks.addTask(8, new EntityAIPlay(this, 0.32D));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityVillager.class, 5.0F, 0.02F));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:4-Space-Legacy
文件:SCVenusEntityVenusianVillager.java
public SCVenusEntityVenusianVillager(World par1World)
{
super(par1World);
this.randomTickDivider = 0;
this.isMating = false;
this.isPlaying = false;
this.villageObj = null;
this.setSize(0.6F, 1.8F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.3F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 15.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityVillager.class, 15.0F, 0.05F));
this.tasks.addTask(9, new EntityAIWander(this, 0.3F));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 15.0F));
}
项目:WuppyMods
文件:EntityAnna.java
public EntityAnna(World par1World)
{
super(par1World);
this.setSize(1.0F, 2.0F);
this.getNavigator().setAvoidsWater(true);
this.getNavigator().setBreakDoors(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(7, new EntityAIWatchClosest2(this, EntityVillager.class, 5.0F, 0.02F));
this.tasks.addTask(8, new EntityAIWander(this, 0.6D));
this.tasks.addTask(9, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:WuppyMods
文件:EntityDwarf.java
public EntityDwarf(World par1World)
{
super(par1World);
this.setSize(1.0F, 1.0F);
this.getNavigator().setAvoidsWater(true);
this.getNavigator().setBreakDoors(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(6, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(7, new EntityAIWatchClosest2(this, EntityVillager.class, 5.0F, 0.02F));
this.tasks.addTask(8, new EntityAIWander(this, 0.6D));
this.tasks.addTask(9, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
}
项目:Amitcraft
文件:EntityTComp.java
public EntityTComp(World par1World) {
super(par1World);
this.texture = AmitReference.Sprites.MOB_TEXTURE_PATH + "TComp.png";
this.moveSpeed = this.stepHeight = 1.0F;
this.moveSpeed = 0.75F;
this.stepHeight = 2.0F;
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIArrowAttack(this, 0.25F, 20, 10.0F));
this.tasks.addTask(1, new EntityAIWander(this, 0.3F));
this.tasks.addTask(2, new EntityAIAvoidEntity(this, EntityZombie.class, 8.0F, 0.3F, 0.35F));
this.tasks.addTask(3, new EntityAIMoveIndoors(this));
this.tasks.addTask(4, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(5, new EntityAIOpenDoor(this, true));
this.tasks.addTask(6, new EntityAIMoveTwardsRestriction(this, 0.3F));
this.tasks.addTask(7, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(8, new EntityAIWatchClosest2(this, EntityCow.class, 5.0F, 0.02F));
this.tasks.addTask(9, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityMob.class, 16.0F, 0, false));
this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityCreeper.class, 16.0F, 0, false));
this.targetTasks.addTask(4, new EntityAINearestAttackableTarget(this, EntityLiving.class, 16.0F, 0, false, true, IMob.mobSelector));
}
项目:Infernum
文件:EntityPigMage.java
@Override
public void initEntityAI() {
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityPigZombieMage.class, 8.0F, 0.8D, 0.8D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityPigZombie.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWanderAvoidWater(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
this.applyEntityAI();
}
项目:Count-Armours
文件:EntityFairy.java
@Override
protected void initEntityAI() {
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(6, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(6, new EntityAIWanderAvoidWater(this, 0.6D));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
super.initEntityAI();
}
项目:amunra
文件:EntityRobotVillager.java
public EntityRobotVillager(World par1World, int profession)
{
super(par1World);
this.randomTickDivider = 0;
this.isMating = false;
needsInit = true;
this.isPlaying = false;
this.villageObj = null;
this.setSize(0.6F, 2.35F);
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
// this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.3F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 15.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityRobotVillager.class, 15.0F, 0.05F));
this.tasks.addTask(9, new EntityAIWander(this, 0.3F));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 15.0F));
// buyingList = new MerchantRecipeList();
if(profession != -1) {
setProfession(profession);
}
}
项目:Rediscovered-Mod-1.8
文件:EntityGreenVillager.java
public EntityGreenVillager(World worldIn, int professionId)
{
super(worldIn);
this.villagerInventory = new InventoryBasic("Items", false, 8);
this.setProfession(professionId);
this.setSize(0.6F, 1.8F);
((PathNavigateGround)this.getNavigator()).func_179688_b(true);
((PathNavigateGround)this.getNavigator()).func_179690_a(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, new Predicate()
{
public boolean func_179530_a(Entity p_179530_1_)
{
return p_179530_1_ instanceof EntityZombie;
}
public boolean apply(Object p_apply_1_)
{
return this.func_179530_a((Entity)p_apply_1_);
}
}, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradeGreen(this));
this.tasks.addTask(1, new EntityAILookAtTradeGreen(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
this.setCanPickUpLoot(true);
}
项目:Rediscovered-Mod-1.8
文件:EntityPigman.java
public EntityPigman(World worldIn, int professionId)
{
super(worldIn);
this.villagerInventory = new InventoryBasic("Items", false, 8);
this.setProfession(professionId);
this.setSize(0.6F, 1.8F);
((PathNavigateGround)this.getNavigator()).func_179688_b(true);
((PathNavigateGround)this.getNavigator()).func_179690_a(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, new Predicate()
{
public boolean func_179530_a(Entity p_179530_1_)
{
return p_179530_1_ instanceof EntityZombie;
}
public boolean apply(Object p_apply_1_)
{
return this.func_179530_a((Entity)p_apply_1_);
}
}, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAITradePigman(this));
this.tasks.addTask(1, new EntityAILookAtTradePigman(this));
this.tasks.addTask(2, new EntityAIMoveIndoors(this));
this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
this.tasks.addTask(9, new EntityAIWatchClosest2(this, EntityPlayer.class, 3.0F, 1.0F));
this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
this.setCanPickUpLoot(true);
}
项目:Rediscovered-Mod-1.8.8
文件:EntityBeastBoy.java
public EntityBeastBoy(World par1World)
{
super(par1World);
field_48119_b = 0;
villageObj = null;
type = rand.nextInt(3);
//animSpeed = (float)(Math.random() * 0.89999997615814209D + 0.10000000149011612D);
animSpeed = (float)(0.89999997615814209D);
((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
tasks.addTask(1, new EntityAIAttackOnCollide(this, 0.25F, true));
tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.22F, 32F));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityTNTPrimed.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityCreeper.class, 8.0F, 0.6D, 0.6D));
tasks.addTask(5, new EntityAIMoveThroughVillage(this, 0.16F, true));
tasks.addTask(6, new EntityAIMoveTowardsRestriction(this, 0.16F));
tasks.addTask(8, new EntityAIWander(this, 0.16F));
tasks.addTask(9, new EntityAIWatchClosest2(this, net.minecraft.entity.player.EntityPlayer.class, 3F, 1.0F));
tasks.addTask(10, new EntityAIWatchClosest2(this, net.minecraft.entity.passive.EntityVillager.class, 5F, 0.02F));
tasks.addTask(11, new EntityAIWatchClosest2(this, com.stormister.rediscovered.EntityRana.class, 5F, 0.02F));
tasks.addTask(12, new EntityAIWatchClosest2(this, com.stormister.rediscovered.EntityBeastBoy.class, 5F, 0.02F));
tasks.addTask(13, new EntityAILookIdle(this));
tasks.addTask(14, new EntityAIRestrictOpenDoor(this));
tasks.addTask(15, new EntityAIOpenDoor(this, true));
targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
if(mod_Rediscovered.BeastBoyHostile)
this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.applyEntityAI();
}
项目:Rediscovered-Mod-1.8.8
文件:EntityMeleePigman.java
public EntityMeleePigman(World par1World)
{
super(par1World);
field_48119_b = 0;
villageObj = null;
type = rand.nextInt(3);
animSpeed = (float)(0.89999997615814209D);
((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
tasks.addTask(1, new EntityAIAttackOnCollide(this, 0.25F, true));
tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.22F, 32F));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityTNTPrimed.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityCreeper.class, 8.0F, 0.6D, 0.6D));
tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
tasks.addTask(5, new EntityAIMoveThroughVillage(this, 0.16F, true));
tasks.addTask(6, new EntityAIMoveTowardsRestriction(this, 0.16F));
tasks.addTask(8, new EntityAIWander(this, 0.16F));
tasks.addTask(9, new EntityAIWatchClosest2(this, net.minecraft.entity.player.EntityPlayer.class, 3F, 1.0F));
tasks.addTask(10, new EntityAIWatchClosest2(this, net.minecraft.entity.passive.EntityVillager.class, 5F, 0.02F));
tasks.addTask(11, new EntityAIWatchClosest2(this, com.stormister.rediscovered.EntityRana.class, 5F, 0.02F));
tasks.addTask(12, new EntityAIWatchClosest2(this, com.stormister.rediscovered.EntityBlackSteve.class, 5F, 0.02F));
tasks.addTask(13, new EntityAILookIdle(this));
tasks.addTask(14, new EntityAIRestrictOpenDoor(this));
tasks.addTask(15, new EntityAIOpenDoor(this, true));
targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
this.applyEntityAI();
if (par1World != null && !par1World.isRemote)
{
this.setCombatTask();
}
}
项目:Rediscovered-Mod-1.8.8
文件:EntitySteve.java
public EntitySteve(World par1World)
{
super(par1World);
field_48119_b = 0;
villageObj = null;
type = rand.nextInt(3);
//animSpeed = (float)(Math.random() * 0.89999997615814209D + 0.10000000149011612D);
animSpeed = (float)(0.89999997615814209D);
((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
tasks.addTask(1, new EntityAIAttackOnCollide(this, 0.25F, true));
tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.22F, 32F));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityTNTPrimed.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityCreeper.class, 8.0F, 0.6D, 0.6D));
tasks.addTask(5, new EntityAIMoveThroughVillage(this, 0.16F, true));
tasks.addTask(6, new EntityAIMoveTowardsRestriction(this, 0.16F));
tasks.addTask(8, new EntityAIWander(this, 0.16F));
tasks.addTask(9, new EntityAIWatchClosest2(this, net.minecraft.entity.player.EntityPlayer.class, 3F, 1.0F));
tasks.addTask(10, new EntityAIWatchClosest2(this, net.minecraft.entity.passive.EntityVillager.class, 5F, 0.02F));
tasks.addTask(11, new EntityAIWatchClosest2(this, com.stormister.rediscovered.EntityRana.class, 5F, 0.02F));
tasks.addTask(12, new EntityAIWatchClosest2(this, com.stormister.rediscovered.EntitySteve.class, 5F, 0.02F));
tasks.addTask(13, new EntityAILookIdle(this));
tasks.addTask(14, new EntityAIRestrictOpenDoor(this));
tasks.addTask(15, new EntityAIOpenDoor(this, true));
targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityZombie.class, 1.0D, false));
this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntitySkeleton.class, 1.0D, false));
this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntitySpider.class, 1.0D, false));
if(mod_Rediscovered.SteveHostile)
this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.applyEntityAI();
}
项目:Rediscovered-Mod-1.8.8
文件:EntityBlackSteve.java
public EntityBlackSteve(World par1World)
{
super(par1World);
field_48119_b = 0;
villageObj = null;
type = rand.nextInt(3);
//animSpeed = (float)(Math.random() * 0.89999997615814209D + 0.10000000149011612D);
animSpeed = (float)(0.89999997615814209D);
((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
tasks.addTask(1, new EntityAIAttackOnCollide(this, 0.25F, true));
tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.22F, 32F));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityTNTPrimed.class, 8.0F, 0.6D, 0.6D));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityCreeper.class, 8.0F, 0.6D, 0.6D));
tasks.addTask(5, new EntityAIMoveThroughVillage(this, 0.16F, true));
tasks.addTask(6, new EntityAIMoveTowardsRestriction(this, 0.16F));
tasks.addTask(8, new EntityAIWander(this, 0.16F));
tasks.addTask(9, new EntityAIWatchClosest2(this, net.minecraft.entity.player.EntityPlayer.class, 3F, 1.0F));
tasks.addTask(10, new EntityAIWatchClosest2(this, net.minecraft.entity.passive.EntityVillager.class, 5F, 0.02F));
tasks.addTask(11, new EntityAIWatchClosest2(this, com.stormister.rediscovered.EntityRana.class, 5F, 0.02F));
tasks.addTask(12, new EntityAIWatchClosest2(this, com.stormister.rediscovered.EntityBeastBoy.class, 5F, 0.02F));
tasks.addTask(13, new EntityAILookIdle(this));
tasks.addTask(14, new EntityAIRestrictOpenDoor(this));
tasks.addTask(15, new EntityAIOpenDoor(this, true));
targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
if(mod_Rediscovered.BlackSteveHostile)
this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.applyEntityAI();
}
项目:Rediscovered-Mod-1.6.4
文件:EntityBeastBoy.java
public EntityBeastBoy(World par1World)
{
super(par1World);
field_48119_b = 0;
villageObj = null;
type = rand.nextInt(3);
//animSpeed = (float)(Math.random() * 0.89999997615814209D + 0.10000000149011612D);
animSpeed = (float)(0.89999997615814209D);
getNavigator().setAvoidsWater(true);
tasks.addTask(1, new EntityAIAttackOnCollide(this, 0.25F, true));
tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.22F, 32F));
tasks.addTask(3, new EntityAIAvoidEntity(this, net.minecraft.entity.item.EntityTNTPrimed.class, 8F, 0.3F, 0.35F));
tasks.addTask(4, new EntityAIAvoidEntity(this, net.minecraft.entity.monster.EntityCreeper.class, 8F, 0.3F, 0.35F));
tasks.addTask(5, new EntityAIMoveThroughVillage(this, 0.16F, true));
tasks.addTask(6, new EntityAIMoveTowardsRestriction(this, 0.16F));
tasks.addTask(8, new EntityAIWander(this, 0.16F));
tasks.addTask(9, new EntityAIWatchClosest2(this, net.minecraft.entity.player.EntityPlayer.class, 3F, 1.0F));
tasks.addTask(10, new EntityAIWatchClosest2(this, net.minecraft.entity.passive.EntityVillager.class, 5F, 0.02F));
tasks.addTask(11, new EntityAIWatchClosest2(this, RediscoveredMod.EntityRana.class, 5F, 0.02F));
tasks.addTask(12, new EntityAIWatchClosest2(this, RediscoveredMod.EntityBeastBoy.class, 5F, 0.02F));
tasks.addTask(13, new EntityAILookIdle(this));
tasks.addTask(14, new EntityAIRestrictOpenDoor(this));
tasks.addTask(15, new EntityAIOpenDoor(this, true));
targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
if(mod_Rediscovered.BeastBoyHostile)
targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}