• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java EntityAIMoveIndoors类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中net.minecraft.entity.ai.EntityAIMoveIndoors的典型用法代码示例。如果您正苦于以下问题:Java EntityAIMoveIndoors类的具体用法?Java EntityAIMoveIndoors怎么用?Java EntityAIMoveIndoors使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



EntityAIMoveIndoors类属于net.minecraft.entity.ai包,在下文中一共展示了EntityAIMoveIndoors类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: EntityVillager

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:25,代码来源:EntityVillager.java


示例2: initEntityAI

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:21,代码来源:EntityVillager.java


示例3: initEntityAI

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:18,代码来源:EntityVillager.java


示例4: GGPMobNPC

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
public GGPMobNPC(World par1World, String customName) {
	super(par1World);
	this.getNavigator().setBreakDoors(true);
	this.getNavigator().setAvoidsWater(true);
	this.tasks.addTask(0, new EntityAISwimming(this));
	this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
	this.tasks.addTask(2, new EntityAIMoveIndoors(this));
	this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
	this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
	this.tasks.addTask(2, new EntityAIMoveIndoors(this));
       this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, true));
       this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, false));
	this.setCustomNameTag(customName);
	
}
 
开发者ID:mixerrules,项目名称:piggalot-mod,代码行数:18,代码来源:GGPMobNPC.java


示例5: EntityARVillager

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:katzenpapst,项目名称:amunra,代码行数:21,代码来源:EntityARVillager.java


示例6: EntityVillager

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:24,代码来源:EntityVillager.java


示例7: EntityGreenVillager

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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);
}
 
开发者ID:Stormister,项目名称:Rediscovered-Mod-1.8.8,代码行数:22,代码来源:EntityGreenVillager.java


示例8: EntityRana

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:Stormister,项目名称:Rediscovered-Mod-1.8.8,代码行数:27,代码来源:EntityRana.java


示例9: EntityPigman

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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);
   }
 
开发者ID:Stormister,项目名称:Rediscovered-Mod-1.8.8,代码行数:23,代码来源:EntityPigman.java


示例10: EntityVenusianVillager

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:4Space,项目名称:4Space-1.7,代码行数:18,代码来源:EntityVenusianVillager.java


示例11: EntityMagician

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:MagiciansArtificeTeam,项目名称:Magicians-Artifice,代码行数:22,代码来源:EntityMagician.java


示例12: EntityVillager

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:24,代码来源:EntityVillager.java


示例13: EntityGreenVillager

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:Stormister,项目名称:Rediscovered-Mod-1.6.4,代码行数:25,代码来源:EntityGreenVillager.java


示例14: EntityRana

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:Stormister,项目名称:Rediscovered-Mod-1.6.4,代码行数:27,代码来源:EntityRana.java


示例15: EntityPigman

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:Stormister,项目名称:Rediscovered-Mod-1.6.4,代码行数:24,代码来源:EntityPigman.java


示例16: EntityNpcBase

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:coolAlias,项目名称:ZeldaSwordSkills,代码行数:21,代码来源:EntityNpcBase.java


示例17: EntityVillager

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:23,代码来源:EntityVillager.java


示例18: EntityGreenVillager

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:Stormister,项目名称:Rediscovered-Mod-1.7.10,代码行数:21,代码来源:EntityGreenVillager.java


示例19: EntityRana

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:Stormister,项目名称:Rediscovered-Mod-1.7.10,代码行数:27,代码来源:EntityRana.java


示例20: EntityPigman

import net.minecraft.entity.ai.EntityAIMoveIndoors; //导入依赖的package包/类
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));
}
 
开发者ID:Stormister,项目名称:Rediscovered-Mod-1.7.10,代码行数:21,代码来源:EntityPigman.java



注:本文中的net.minecraft.entity.ai.EntityAIMoveIndoors类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java BigIntegers类代码示例发布时间:2022-05-21
下一篇:
Java DefaultArtifactVersion类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap