当前位置: 首页>>代码示例>>Java>>正文


Java EntityAIBreakDoor类代码示例

本文整理汇总了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));
		
	}
 
开发者ID:Link1234Gamer,项目名称:FiveNightsAtFreddysUniverseMod,代码行数:17,代码来源:EntityBonnie.java

示例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));
		
	}
 
开发者ID:Link1234Gamer,项目名称:FiveNightsAtFreddysUniverseMod,代码行数:17,代码来源:EntityToyBonnie.java

示例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));
		
	}
 
开发者ID:Link1234Gamer,项目名称:FiveNightsAtFreddysUniverseMod,代码行数:17,代码来源:EntityMinirina.java

示例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));
		
	}
 
开发者ID:Link1234Gamer,项目名称:FiveNightsAtFreddysUniverseMod,代码行数:17,代码来源:EntityToyFreddy.java

示例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));
		
	}
 
开发者ID:Link1234Gamer,项目名称:FiveNightsAtFreddysUniverseMod,代码行数:17,代码来源:EntityWBonnie.java

示例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));
		
	}
 
开发者ID:Link1234Gamer,项目名称:FiveNightsAtFreddysUniverseMod,代码行数:17,代码来源:EntityChica.java

示例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));
        
	}
 
开发者ID:Link1234Gamer,项目名称:FiveNightsAtFreddysUniverseMod,代码行数:17,代码来源:EntityFuntimeFreddy.java

示例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));
}
 
开发者ID:MinecraftModArchive,项目名称:Runes-And-Silver,代码行数:18,代码来源:EntityEskimoZombie.java

示例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));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:17,代码来源:EntityZombie.java

示例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));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:18,代码来源:EntityZombie.java

示例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));
}
 
开发者ID:wuppy29,项目名称:WuppyMods,代码行数:18,代码来源:EntitySlimeZombie.java

示例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));
}
 
开发者ID:wuppy29,项目名称:WuppyMods,代码行数:18,代码来源:EntityWerewolf.java

示例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));
}
 
开发者ID:wuppy29,项目名称:WuppyMods,代码行数:18,代码来源:EntityVampire.java

示例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));
}
 
开发者ID:wuppy29,项目名称:WuppyMods,代码行数:19,代码来源:EntityUruk.java

示例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));
}
 
开发者ID:Danis98,项目名称:Veniocraft,代码行数:25,代码来源:EntityCyborg.java


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