當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。