本文整理汇总了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");
}
}
示例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");
}
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}
示例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;
}