本文整理汇总了Java中net.minecraft.entity.ai.EntityAIOcelotSit类的典型用法代码示例。如果您正苦于以下问题:Java EntityAIOcelotSit类的具体用法?Java EntityAIOcelotSit怎么用?Java EntityAIOcelotSit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EntityAIOcelotSit类属于net.minecraft.entity.ai包,在下文中一共展示了EntityAIOcelotSit类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: EntityOcelot
import net.minecraft.entity.ai.EntityAIOcelotSit; //导入依赖的package包/类
public EntityOcelot(World worldIn)
{
super(worldIn);
this.setSize(0.6F, 0.7F);
((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, this.aiSit);
this.tasks.addTask(3, this.aiTempt = new EntityAITempt(this, 0.6D, Items.fish, true));
this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 5.0F));
this.tasks.addTask(6, new EntityAIOcelotSit(this, 0.8D));
this.tasks.addTask(7, new EntityAILeapAtTarget(this, 0.3F));
this.tasks.addTask(8, new EntityAIOcelotAttack(this));
this.tasks.addTask(9, new EntityAIMate(this, 0.8D));
this.tasks.addTask(10, new EntityAIWander(this, 0.8D));
this.tasks.addTask(11, new EntityAIWatchClosest(this, EntityPlayer.class, 10.0F));
this.targetTasks.addTask(1, new EntityAITargetNonTamed(this, EntityChicken.class, false, (Predicate)null));
}
示例2: initEntityAI
import net.minecraft.entity.ai.EntityAIOcelotSit; //导入依赖的package包/类
protected void initEntityAI()
{
this.aiSit = new EntityAISit(this);
this.aiTempt = new EntityAITempt(this, 0.6D, Items.FISH, true);
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, this.aiSit);
this.tasks.addTask(3, this.aiTempt);
this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 5.0F));
this.tasks.addTask(6, new EntityAIOcelotSit(this, 0.8D));
this.tasks.addTask(7, new EntityAILeapAtTarget(this, 0.3F));
this.tasks.addTask(8, new EntityAIOcelotAttack(this));
this.tasks.addTask(9, new EntityAIMate(this, 0.8D));
this.tasks.addTask(10, new EntityAIWanderAvoidWater(this, 0.8D, 1.0000001E-5F));
this.tasks.addTask(11, new EntityAIWatchClosest(this, EntityPlayer.class, 10.0F));
this.targetTasks.addTask(1, new EntityAITargetNonTamed(this, EntityChicken.class, false, (Predicate)null));
}
示例3: initEntityAI
import net.minecraft.entity.ai.EntityAIOcelotSit; //导入依赖的package包/类
protected void initEntityAI()
{
this.aiSit = new EntityAISit(this);
this.aiTempt = new EntityAITempt(this, 0.6D, Items.FISH, true);
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, this.aiSit);
this.tasks.addTask(3, this.aiTempt);
this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 5.0F));
this.tasks.addTask(6, new EntityAIOcelotSit(this, 0.8D));
this.tasks.addTask(7, new EntityAILeapAtTarget(this, 0.3F));
this.tasks.addTask(8, new EntityAIOcelotAttack(this));
this.tasks.addTask(9, new EntityAIMate(this, 0.8D));
this.tasks.addTask(10, new EntityAIWander(this, 0.8D));
this.tasks.addTask(11, new EntityAIWatchClosest(this, EntityPlayer.class, 10.0F));
this.targetTasks.addTask(1, new EntityAITargetNonTamed(this, EntityChicken.class, false, (Predicate)null));
}
示例4: EntityOcelot
import net.minecraft.entity.ai.EntityAIOcelotSit; //导入依赖的package包/类
public EntityOcelot(World par1World)
{
super(par1World);
this.setSize(0.6F, 0.8F);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, this.aiSit);
this.tasks.addTask(3, this.aiTempt = new EntityAITempt(this, 0.6D, Items.fish, true));
this.tasks.addTask(4, new EntityAIAvoidEntity(this, EntityPlayer.class, 16.0F, 0.8D, 1.33D));
this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 5.0F));
this.tasks.addTask(6, new EntityAIOcelotSit(this, 1.33D));
this.tasks.addTask(7, new EntityAILeapAtTarget(this, 0.3F));
this.tasks.addTask(8, new EntityAIOcelotAttack(this));
this.tasks.addTask(9, new EntityAIMate(this, 0.8D));
this.tasks.addTask(10, new EntityAIWander(this, 0.8D));
this.tasks.addTask(11, new EntityAIWatchClosest(this, EntityPlayer.class, 10.0F));
this.targetTasks.addTask(1, new EntityAITargetNonTamed(this, EntityChicken.class, 750, false));
}
示例5: EntityFoxSquirrel
import net.minecraft.entity.ai.EntityAIOcelotSit; //导入依赖的package包/类
public EntityFoxSquirrel(World par1World)
{
super(par1World);
this.setSize(0.6F, 0.8F);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, this.aiSit);
this.tasks.addTask(3, this.aiTempt = new EntityAITempt(this, 0.6D, Items.fish, true));
this.tasks.addTask(4, new EntityAIAvoidEntity(this, EntityPlayer.class, 16.0F, 0.8D, 1.33D));
this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 5.0F));
this.tasks.addTask(6, new EntityAIOcelotSit(this, 1.33D));
this.tasks.addTask(7, new EntityAILeapAtTarget(this, 0.3F));
this.tasks.addTask(8, new EntityAIOcelotAttack(this));
this.tasks.addTask(9, new EntityAIMate(this, 0.8D));
this.tasks.addTask(10, new EntityAIWander(this, 0.8D));
this.tasks.addTask(11, new EntityAIWatchClosest(this, EntityPlayer.class, 10.0F));
this.targetTasks.addTask(1, new EntityAITargetNonTamed(this, EntityChicken.class, 750, false));
}
示例6: EntityOcelot
import net.minecraft.entity.ai.EntityAIOcelotSit; //导入依赖的package包/类
public EntityOcelot(World p_i1688_1_)
{
super(p_i1688_1_);
this.setSize(0.6F, 0.8F);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, this.aiSit);
this.tasks.addTask(3, this.aiTempt = new EntityAITempt(this, 0.6D, Items.fish, true));
this.tasks.addTask(4, new EntityAIAvoidEntity(this, EntityPlayer.class, 16.0F, 0.8D, 1.33D));
this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 5.0F));
this.tasks.addTask(6, new EntityAIOcelotSit(this, 1.33D));
this.tasks.addTask(7, new EntityAILeapAtTarget(this, 0.3F));
this.tasks.addTask(8, new EntityAIOcelotAttack(this));
this.tasks.addTask(9, new EntityAIMate(this, 0.8D));
this.tasks.addTask(10, new EntityAIWander(this, 0.8D));
this.tasks.addTask(11, new EntityAIWatchClosest(this, EntityPlayer.class, 10.0F));
this.targetTasks.addTask(1, new EntityAITargetNonTamed(this, EntityChicken.class, 750, false));
}
示例7: EntityOcelot
import net.minecraft.entity.ai.EntityAIOcelotSit; //导入依赖的package包/类
public EntityOcelot(World p_i1688_1_) {
super(p_i1688_1_);
this.func_70105_a(0.6F, 0.8F);
this.func_70661_as().func_75491_a(true);
this.field_70714_bg.func_75776_a(1, new EntityAISwimming(this));
this.field_70714_bg.func_75776_a(2, this.field_70911_d);
this.field_70714_bg.func_75776_a(3, this.field_70914_e = new EntityAITempt(this, 0.6D, Item.field_77754_aU.field_77779_bT, true));
this.field_70714_bg.func_75776_a(4, new EntityAIAvoidEntity(this, EntityPlayer.class, 16.0F, 0.8D, 1.33D));
this.field_70714_bg.func_75776_a(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 5.0F));
this.field_70714_bg.func_75776_a(6, new EntityAIOcelotSit(this, 1.33D));
this.field_70714_bg.func_75776_a(7, new EntityAILeapAtTarget(this, 0.3F));
this.field_70714_bg.func_75776_a(8, new EntityAIOcelotAttack(this));
this.field_70714_bg.func_75776_a(9, new EntityAIMate(this, 0.8D));
this.field_70714_bg.func_75776_a(10, new EntityAIWander(this, 0.8D));
this.field_70714_bg.func_75776_a(11, new EntityAIWatchClosest(this, EntityPlayer.class, 10.0F));
this.field_70715_bh.func_75776_a(1, new EntityAITargetNonTamed(this, EntityChicken.class, 750, false));
}
示例8: EntityOcelot
import net.minecraft.entity.ai.EntityAIOcelotSit; //导入依赖的package包/类
public EntityOcelot(World par1World)
{
super(par1World);
this.setSize(0.6F, 0.8F);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, this.aiSit);
this.tasks.addTask(3, this.aiTempt = new EntityAITempt(this, 0.6D, Item.fishRaw.itemID, true));
this.tasks.addTask(4, new EntityAIAvoidEntity(this, EntityPlayer.class, 16.0F, 0.8D, 1.33D));
this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 5.0F));
this.tasks.addTask(6, new EntityAIOcelotSit(this, 1.33D));
this.tasks.addTask(7, new EntityAILeapAtTarget(this, 0.3F));
this.tasks.addTask(8, new EntityAIOcelotAttack(this));
this.tasks.addTask(9, new EntityAIMate(this, 0.8D));
this.tasks.addTask(10, new EntityAIWander(this, 0.8D));
this.tasks.addTask(11, new EntityAIWatchClosest(this, EntityPlayer.class, 10.0F));
this.targetTasks.addTask(1, new EntityAITargetNonTamed(this, EntityChicken.class, 750, false));
}
示例9: isSuitableForEntity
import net.minecraft.entity.ai.EntityAIOcelotSit; //导入依赖的package包/类
@Override
public boolean isSuitableForEntity(EntityLiving entity, Class<? extends EntityAIBase> c)
{
if(c == EntityAICreeperSwell.class && !(entity instanceof EntityCreeper))
return false;
else if(c == EntityAIAvoidEntity.class && !(entity instanceof EntityCreature))
return false;
else if(c == EntityAIAttackOnCollide.class && !(entity instanceof EntityCreature))
return false;
else if(c == EntityAIWander.class && !(entity instanceof EntityCreature))
return false;
else if(c == EntityAINearestAttackableTarget.class && !(entity instanceof EntityCreature))
return false;
else if(c == EntityAIHurtByTarget.class && !(entity instanceof EntityCreature))
return false;
else if(c == EntityAIArrowAttack.class && !(entity instanceof IRangedAttackMob))
return false;
else if(c == EntityAIBeg.class && !(entity instanceof EntityWolf))
return false;
else if(c == EntityAIDefendVillage.class && !(entity instanceof EntityIronGolem))
return false;
else if(c == EntityAIFleeSun.class && !(entity instanceof EntityCreature))
return false;
else if(c == EntityAIFollowGolem.class && !(entity instanceof EntityVillager))
return false;
else if(c == EntityAIFollowOwner.class && !(entity instanceof EntityTameable))
return false;
else if(c == EntityAIFollowParent.class && !(entity instanceof EntityAnimal))
return false;
else if(c == EntityAILookAtTradePlayer.class && !(entity instanceof EntityVillager))
return false;
else if(c == EntityAILookAtVillager.class && !(entity instanceof EntityIronGolem))
return false;
else if(c == EntityAIMate.class && !(entity instanceof EntityAnimal))
return false;
else if(c == EntityAIPanic.class && !(entity instanceof EntityCreature))
return false;
else if(c == EntityAITempt.class && !(entity instanceof EntityCreature))
return false;
else if(c == EntityAIMoveIndoors.class && !(entity instanceof EntityCreature))
return false;
else if(c == EntityAIMoveThroughVillage.class && !(entity instanceof EntityCreature))
return false;
else if(c == EntityAIOcelotSit.class && !(entity instanceof EntityOcelot))
return false;
else if(c == EntityAIPlay.class && !(entity instanceof EntityVillager))
return false;
else if(c == EntityAIRestrictOpenDoor.class && !(entity instanceof EntityCreature))
return false;
else if(c == EntityAIRestrictSun.class && !(entity instanceof EntityCreature))
return false;
else if(c == EntityAIRunAroundLikeCrazy.class && !(entity instanceof EntityHorse))
return false;
else if(c == EntityAISit.class && !(entity instanceof EntityTameable))
return false;
else if(c == EntityAITargetNonTamed.class && !(entity instanceof EntityTameable))
return false;
else if(c == EntityAITradePlayer.class && !(entity instanceof EntityVillager))
return false;
else if(c == EntityAIVillagerMate.class && !(entity instanceof EntityVillager))
return false;
else if(c == EntityAIOwnerHurtTarget.class && !(entity instanceof EntityTameable))
return false;
else if(c == EntityAIOwnerHurtByTarget.class && !(entity instanceof EntityTameable))
return false;
return true;
}