本文整理汇总了Java中net.minecraft.entity.ai.EntityAIBreakDoor类的典型用法代码示例。如果您正苦于以下问题:Java EntityAIBreakDoor类的具体用法?Java EntityAIBreakDoor怎么用?Java EntityAIBreakDoor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EntityAIBreakDoor类属于net.minecraft.entity.ai包,在下文中一共展示了EntityAIBreakDoor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: EntityBonnie
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntityBonnie(World world) {
super(world);
this.setSize(0.9F, 2.5F);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIBreakDoor(this));
this.tasks.addTask(2, new EntityBonnieAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.tasks.addTask(5, new EntityBonnieAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(7, new EntityBonnieAIWander(this, 1.0D));
this.tasks.addTask(8, new EntityBonnieAIWatchClosest(this, EntityPlayer.class, 8.0F));
// this.tasks.addTask(9, new EntitySpringbonnieAIStare(this, EntityPlayer.class, 3.0F));
this.tasks.addTask(10, new EntityBonnieAILookIdle(this));
this.targetTasks.addTask(1, new EntityBonnieAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.targetTasks.addTask(2, new EntityBonnieAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}
示例2: EntityToyBonnie
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntityToyBonnie(World world) {
super(world);
this.setSize(0.9F, 2.5F);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIBreakDoor(this));
this.tasks.addTask(2, new EntityTBonnieAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.tasks.addTask(5, new EntityTBonnieAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(7, new EntityTBonnieAIWander(this, 1.0D));
this.tasks.addTask(8, new EntityTBonnieAIWatchClosest(this, EntityPlayer.class, 8.0F));
// this.tasks.addTask(9, new EntitySpringbonnieAIStare(this, EntityPlayer.class, 3.0F));
this.tasks.addTask(10, new EntityTBonnieAILookIdle(this));
this.targetTasks.addTask(1, new EntityTBonnieAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.targetTasks.addTask(2, new EntityTBonnieAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}
示例3: EntityMinirina
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntityMinirina(World world) {
super(world);
this.setSize(0.6F, 0.9F);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIBreakDoor(this));
this.tasks.addTask(2, new EntityMinirinaAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.tasks.addTask(5, new EntityMinirinaAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(7, new EntityMinirinaAIWander(this, 1.0D));
this.tasks.addTask(8, new EntityMinirinaAIWatchClosest(this, EntityPlayer.class, 8.0F));
// this.tasks.addTask(9, new EntitySpringbonnieAIStare(this, EntityPlayer.class, 3.0F));
this.tasks.addTask(10, new EntityMinirinaAILookIdle(this));
this.targetTasks.addTask(1, new EntityMinirinaAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.targetTasks.addTask(2, new EntityMinirinaAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}
示例4: EntityToyFreddy
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntityToyFreddy(World world) {
super(world);
this.setSize(0.9F, 2.5F);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIBreakDoor(this));
this.tasks.addTask(2, new EntityTFreddyAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.tasks.addTask(5, new EntityTFreddyAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(7, new EntityTFreddyAIWander(this, 1.0D));
this.tasks.addTask(8, new EntityTFreddyAIWatchClosest(this, EntityPlayer.class, 8.0F));
// this.tasks.addTask(9, new EntitySpringbonnieAIStare(this, EntityPlayer.class, 3.0F));
this.tasks.addTask(10, new EntityTFreddyAILookIdle(this));
this.targetTasks.addTask(1, new EntityTFreddyAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.targetTasks.addTask(2, new EntityTFreddyAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}
示例5: EntityWBonnie
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntityWBonnie(World world) {
super(world);
this.setSize(0.9F, 2.5F);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIBreakDoor(this));
this.tasks.addTask(2, new EntityWBonnieAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.tasks.addTask(5, new EntityWBonnieAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(7, new EntityWBonnieAIWander(this, 1.0D));
this.tasks.addTask(8, new EntityWBonnieAIWatchClosest(this, EntityPlayer.class, 8.0F));
// this.tasks.addTask(9, new EntitySpringbonnieAIStare(this, EntityPlayer.class, 3.0F));
this.tasks.addTask(10, new EntityWBonnieAILookIdle(this));
this.targetTasks.addTask(1, new EntityWBonnieAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.targetTasks.addTask(2, new EntityWBonnieAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}
示例6: EntityChica
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntityChica(World world) {
super(world);
this.setSize(0.9F, 2.5F);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIBreakDoor(this));
this.tasks.addTask(2, new EntityChicaAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.tasks.addTask(5, new EntityChicaAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(7, new EntityChicaAIWander(this, 1.0D));
this.tasks.addTask(8, new EntityChicaAIWatchClosest(this, EntityPlayer.class, 8.0F));
// this.tasks.addTask(9, new EntitySpringbonnieAIStare(this, EntityPlayer.class, 3.0F));
this.tasks.addTask(10, new EntityChicaAILookIdle(this));
this.targetTasks.addTask(1, new EntityChicaAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.targetTasks.addTask(2, new EntityChicaAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
}
示例7: EntityFuntimeFreddy
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntityFuntimeFreddy(World world) {
super(world);
this.setSize(0.9F, 2.8F);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIBreakDoor(this));
this.tasks.addTask(2, new EntityFuntimeFreddyAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.tasks.addTask(5, new EntityFuntimeFreddyAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(7, new EntityFuntimeFreddyAIWander(this, 1.0D));
this.tasks.addTask(8, new EntityFuntimeFreddyAIWatchClosest(this, EntityPlayer.class, 8.0F));
// this.tasks.addTask(9, new EntityFuntimeFreddyAICrawlThroughVent(this, 0.5D));
// this.tasks.addTask(9, new EntityFredbearAIStare(this, EntityPlayer.class, 3.0F));
this.tasks.addTask(10, new EntityFuntimeFreddyAILookIdle(this));
this.targetTasks.addTask(1, new EntityFuntimeFreddyAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.targetTasks.addTask(2, new EntityFuntimeFreddyAINearestAttackableTarget(this, EntityVillager.class, 0, true));
}
示例8: EntityEskimoZombie
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntityEskimoZombie(World par1World)
{
super(par1World);
this.getNavigator().setBreakDoors(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIBreakDoor(this));
this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, 1.0D, false));
this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
}
示例9: EntityZombie
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntityZombie(World p_i1745_1_) {
super(p_i1745_1_);
this.func_70661_as().func_75498_b(true);
this.field_70714_bg.func_75776_a(0, new EntityAISwimming(this));
this.field_70714_bg.func_75776_a(1, new EntityAIBreakDoor(this));
this.field_70714_bg.func_75776_a(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.field_70714_bg.func_75776_a(3, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
this.field_70714_bg.func_75776_a(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
this.field_70714_bg.func_75776_a(5, new EntityAIMoveThroughVillage(this, 1.0D, false));
this.field_70714_bg.func_75776_a(6, new EntityAIWander(this, 1.0D));
this.field_70714_bg.func_75776_a(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.field_70714_bg.func_75776_a(7, new EntityAILookIdle(this));
this.field_70715_bh.func_75776_a(1, new EntityAIHurtByTarget(this, true));
this.field_70715_bh.func_75776_a(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.field_70715_bh.func_75776_a(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
}
示例10: EntityZombie
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntityZombie(World par1World)
{
super(par1World);
this.getNavigator().setBreakDoors(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIBreakDoor(this));
this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, 1.0D, false));
this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
}
示例11: EntitySlimeZombie
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntitySlimeZombie(World par1World)
{
super(par1World);
this.getNavigator().setBreakDoors(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIBreakDoor(this));
this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, 1.0D, false));
this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
}
示例12: EntityWerewolf
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntityWerewolf(World par1World)
{
super(par1World);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIBreakDoor(this));
this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityVampire.class, 1.0D, true));
this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, 1.0D, false));
this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityVampire.class, 8.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVampire.class, 0, false));
}
示例13: EntityVampire
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntityVampire(World par1World)
{
super(par1World);
this.getNavigator().setBreakDoors(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIBreakDoor(this));
this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, 1.0D, false));
this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
}
示例14: EntityUruk
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
public EntityUruk(World par1World)
{
super(par1World);
this.getNavigator().setBreakDoors(true);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIBreakDoor(this));
this.tasks.addTask(2, new EntityAIAttackFireOnCollide(this, EntityPlayer.class, 1.0D, false));
this.tasks.addTask(3, new EntityAIAttackFireOnCollide(this, EntityVillager.class, 1.0D, true));
this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, 1.0D, false));
this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
}
示例15: EntityCyborg
import net.minecraft.entity.ai.EntityAIBreakDoor; //导入依赖的package包/类
/**
*
* @param world
*/
public EntityCyborg(World world){
super(world);
this.texture="/mods/veniocraft/textures/models/CyborgTexture.png";
this.moveSpeed=0.23F;
this.getNavigator().setBreakDoors(true);
this.getNavigator().setAvoidsWater(true);
this.tasks.addTask(0,new EntityAISwimming(this));
this.tasks.addTask(1,new EntityAIBreakDoor(this));
this.tasks.addTask(2,new EntityAIAttackOnCollide(this,EntityPlayer.class,this.moveSpeed,false));
this.tasks.addTask(3,new EntityAIAttackOnCollide(this,EntityVillager.class,this.moveSpeed,true));
this.tasks.addTask(4,new EntityAIMoveTwardsRestriction(this,this.moveSpeed));
this.tasks.addTask(5,new EntityAIMoveThroughVillage(this,this.moveSpeed,false));
this.tasks.addTask(6,new EntityAIWander(this,this.moveSpeed));
this.tasks.addTask(7,new EntityAIWatchClosest(this,EntityPlayer.class,8.0F));
this.tasks.addTask(7,new EntityAILookIdle(this));
this.targetTasks.addTask(1,new EntityAIHurtByTarget(this,true));
this.targetTasks.addTask(2,new EntityAINearestAttackableTarget(this,EntityPlayer.class,16.0F,0,true));
this.targetTasks.addTask(2,new EntityAINearestAttackableTarget(this,EntityVillager.class,16.0F,0,false));
this.tasks.addTask(8,new EntityAITempt(this,0.3F,VenioItems.chip.itemID,false));
}