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


Java EntityCreature.getNavigator方法代码示例

本文整理汇总了Java中net.minecraft.entity.EntityCreature.getNavigator方法的典型用法代码示例。如果您正苦于以下问题:Java EntityCreature.getNavigator方法的具体用法?Java EntityCreature.getNavigator怎么用?Java EntityCreature.getNavigator使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.entity.EntityCreature的用法示例。


在下文中一共展示了EntityCreature.getNavigator方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: EntityAIAvoidEntity

import net.minecraft.entity.EntityCreature; //导入方法依赖的package包/类
public EntityAIAvoidEntity(EntityCreature p_i46405_1_, Class<T> p_i46405_2_, Predicate <? super T > p_i46405_3_, float p_i46405_4_, double p_i46405_5_, double p_i46405_7_)
{
    this.canBeSeenSelector = new Predicate<Entity>()
    {
        public boolean apply(Entity p_apply_1_)
        {
            return p_apply_1_.isEntityAlive() && EntityAIAvoidEntity.this.theEntity.getEntitySenses().canSee(p_apply_1_);
        }
    };
    this.theEntity = p_i46405_1_;
    this.field_181064_i = p_i46405_2_;
    this.avoidTargetSelector = p_i46405_3_;
    this.avoidDistance = p_i46405_4_;
    this.farSpeed = p_i46405_5_;
    this.nearSpeed = p_i46405_7_;
    this.entityPathNavigate = p_i46405_1_.getNavigator();
    this.setMutexBits(1);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:19,代码来源:EntityAIAvoidEntity.java

示例2: EntityAIAvoidEntity

import net.minecraft.entity.EntityCreature; //导入方法依赖的package包/类
public EntityAIAvoidEntity(EntityCreature theEntityIn, Class<T> classToAvoidIn, Predicate <? super T > avoidTargetSelectorIn, float avoidDistanceIn, double farSpeedIn, double nearSpeedIn)
{
    this.canBeSeenSelector = new Predicate<Entity>()
    {
        public boolean apply(@Nullable Entity p_apply_1_)
        {
            return p_apply_1_.isEntityAlive() && EntityAIAvoidEntity.this.theEntity.getEntitySenses().canSee(p_apply_1_);
        }
    };
    this.theEntity = theEntityIn;
    this.classToAvoid = classToAvoidIn;
    this.avoidTargetSelector = avoidTargetSelectorIn;
    this.avoidDistance = avoidDistanceIn;
    this.farSpeed = farSpeedIn;
    this.nearSpeed = nearSpeedIn;
    this.entityPathNavigate = theEntityIn.getNavigator();
    this.setMutexBits(1);
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:19,代码来源:EntityAIAvoidEntity.java

示例3: EntityAIAvoidEntity

import net.minecraft.entity.EntityCreature; //导入方法依赖的package包/类
public EntityAIAvoidEntity(EntityCreature theEntityIn, Class<T> classToAvoidIn, Predicate <? super T > avoidTargetSelectorIn, float avoidDistanceIn, double farSpeedIn, double nearSpeedIn)
{
    this.canBeSeenSelector = new Predicate<Entity>()
    {
        public boolean apply(@Nullable Entity p_apply_1_)
        {
            return p_apply_1_.isEntityAlive() && EntityAIAvoidEntity.this.theEntity.getEntitySenses().canSee(p_apply_1_) && !EntityAIAvoidEntity.this.theEntity.isOnSameTeam(p_apply_1_);
        }
    };
    this.theEntity = theEntityIn;
    this.classToAvoid = classToAvoidIn;
    this.avoidTargetSelector = avoidTargetSelectorIn;
    this.avoidDistance = avoidDistanceIn;
    this.farSpeed = farSpeedIn;
    this.nearSpeed = nearSpeedIn;
    this.entityPathNavigate = theEntityIn.getNavigator();
    this.setMutexBits(1);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:19,代码来源:EntityAIAvoidEntity.java

示例4: EntityAITempt

import net.minecraft.entity.EntityCreature; //导入方法依赖的package包/类
public EntityAITempt(EntityCreature temptedEntityIn, double speedIn, Item temptItemIn, boolean scaredByPlayerMovementIn)
{
    this.temptedEntity = temptedEntityIn;
    this.speed = speedIn;
    this.temptItem = temptItemIn;
    this.scaredByPlayerMovement = scaredByPlayerMovementIn;
    this.setMutexBits(3);

    if (!(temptedEntityIn.getNavigator() instanceof PathNavigateGround))
    {
        throw new IllegalArgumentException("Unsupported mob type for TemptGoal");
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:14,代码来源:EntityAITempt.java

示例5: EntityAIRestrictOpenDoor

import net.minecraft.entity.EntityCreature; //导入方法依赖的package包/类
public EntityAIRestrictOpenDoor(EntityCreature creatureIn)
{
    this.entityObj = creatureIn;

    if (!(creatureIn.getNavigator() instanceof PathNavigateGround))
    {
        throw new IllegalArgumentException("Unsupported mob type for RestrictOpenDoorGoal");
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:10,代码来源:EntityAIRestrictOpenDoor.java

示例6: EntityAIMoveThroughVillage

import net.minecraft.entity.EntityCreature; //导入方法依赖的package包/类
public EntityAIMoveThroughVillage(EntityCreature theEntityIn, double movementSpeedIn, boolean isNocturnalIn)
{
    this.theEntity = theEntityIn;
    this.movementSpeed = movementSpeedIn;
    this.isNocturnal = isNocturnalIn;
    this.setMutexBits(1);

    if (!(theEntityIn.getNavigator() instanceof PathNavigateGround))
    {
        throw new IllegalArgumentException("Unsupported mob for MoveThroughVillageGoal");
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:13,代码来源:EntityAIMoveThroughVillage.java

示例7: EntityAITempt

import net.minecraft.entity.EntityCreature; //导入方法依赖的package包/类
public EntityAITempt(EntityCreature temptedEntityIn, double speedIn, boolean scaredByPlayerMovementIn, Set<Item> temptItemIn)
{
    this.temptedEntity = temptedEntityIn;
    this.speed = speedIn;
    this.temptItem = temptItemIn;
    this.scaredByPlayerMovement = scaredByPlayerMovementIn;
    this.setMutexBits(3);

    if (!(temptedEntityIn.getNavigator() instanceof PathNavigateGround))
    {
        throw new IllegalArgumentException("Unsupported mob type for TemptGoal");
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:14,代码来源:EntityAITempt.java


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