本文整理匯總了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;
}