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


Java EntityTameable.getNavigator方法代码示例

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


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

示例1: EntityAIFollowOwner

import net.minecraft.entity.passive.EntityTameable; //导入方法依赖的package包/类
public EntityAIFollowOwner(EntityTameable thePetIn, double followSpeedIn, float minDistIn, float maxDistIn)
{
    this.thePet = thePetIn;
    this.theWorld = thePetIn.worldObj;
    this.followSpeed = followSpeedIn;
    this.petPathfinder = thePetIn.getNavigator();
    this.minDist = minDistIn;
    this.maxDist = maxDistIn;
    this.setMutexBits(3);

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

示例2: EntityAIFollowOwner

import net.minecraft.entity.passive.EntityTameable; //导入方法依赖的package包/类
public EntityAIFollowOwner(EntityTameable thePetIn, double followSpeedIn, float minDistIn, float maxDistIn)
{
    this.thePet = thePetIn;
    this.theWorld = thePetIn.world;
    this.followSpeed = followSpeedIn;
    this.petPathfinder = thePetIn.getNavigator();
    this.minDist = minDistIn;
    this.maxDist = maxDistIn;
    this.setMutexBits(3);

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

示例3: EntityAIFollowOwner

import net.minecraft.entity.passive.EntityTameable; //导入方法依赖的package包/类
public EntityAIFollowOwner(EntityTameable par1EntityTameable, double par2, float par4, float par5)
{
    this.thePet = par1EntityTameable;
    this.theWorld = par1EntityTameable.worldObj;
    this.field_75336_f = par2;
    this.petPathfinder = par1EntityTameable.getNavigator();
    this.minDist = par4;
    this.maxDist = par5;
    this.setMutexBits(3);
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:11,代码来源:EntityAIFollowOwner.java

示例4: EntityAIFollowOwner

import net.minecraft.entity.passive.EntityTameable; //导入方法依赖的package包/类
public EntityAIFollowOwner(EntityTameable p_i1625_1_, double p_i1625_2_, float p_i1625_4_, float p_i1625_5_)
{
    this.thePet = p_i1625_1_;
    this.theWorld = p_i1625_1_.worldObj;
    this.field_75336_f = p_i1625_2_;
    this.petPathfinder = p_i1625_1_.getNavigator();
    this.minDist = p_i1625_4_;
    this.maxDist = p_i1625_5_;
    this.setMutexBits(3);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:11,代码来源:EntityAIFollowOwner.java

示例5: EntityAIMoveCancel

import net.minecraft.entity.passive.EntityTameable; //导入方法依赖的package包/类
public EntityAIMoveCancel(EntityTameable entity, float par2) {
    this.pet = entity;
    this.petPathfinder = entity.getNavigator();
    this.dist = par2;
    this.setMutexBits(1);
}
 
开发者ID:NightKosh,项目名称:Sophisticated-wolves,代码行数:7,代码来源:EntityAIMoveCancel.java

示例6: EntityAITeleportAtDrowning

import net.minecraft.entity.passive.EntityTameable; //导入方法依赖的package包/类
public EntityAITeleportAtDrowning(EntityTameable pet) {
    this.pet = (EntitySophisticatedWolf) pet;
    this.world = pet.world;
    this.petPathfinder = pet.getNavigator();
}
 
开发者ID:NightKosh,项目名称:Sophisticated-wolves,代码行数:6,代码来源:EntityAITeleportAtDrowning.java

示例7: EntityAIAttackCancel

import net.minecraft.entity.passive.EntityTameable; //导入方法依赖的package包/类
public EntityAIAttackCancel(EntityTameable entity) {
    this.pet = entity;
    this.petPathfinder = entity.getNavigator();
    this.setMutexBits(1);
    this.sneakCounter = 0;
}
 
开发者ID:NightKosh,项目名称:Sophisticated-wolves,代码行数:7,代码来源:EntityAIAttackCancel.java


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