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


Java RandomPositionGenerator.func_75464_a方法代码示例

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


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

示例1: func_75250_a

import net.minecraft.entity.ai.RandomPositionGenerator; //导入方法依赖的package包/类
public boolean func_75250_a() {
   if(this.field_75436_a.func_110173_bK()) {
      return false;
   } else {
      ChunkCoordinates var1 = this.field_75436_a.func_110172_bL();
      Vec3 var2 = RandomPositionGenerator.func_75464_a(this.field_75436_a, 16, 7, this.field_75436_a.field_70170_p.func_82732_R().func_72345_a((double)var1.field_71574_a, (double)var1.field_71572_b, (double)var1.field_71573_c));
      if(var2 == null) {
         return false;
      } else {
         this.field_75434_b = var2.field_72450_a;
         this.field_75435_c = var2.field_72448_b;
         this.field_75432_d = var2.field_72449_c;
         return true;
      }
   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:17,代码来源:EntityAIMoveTowardsRestriction.java

示例2: func_75250_a

import net.minecraft.entity.ai.RandomPositionGenerator; //导入方法依赖的package包/类
public boolean func_75250_a() {
   this.field_75429_b = this.field_75431_a.func_70638_az();
   if(this.field_75429_b == null) {
      return false;
   } else if(this.field_75429_b.func_70068_e(this.field_75431_a) > (double)(this.field_75426_g * this.field_75426_g)) {
      return false;
   } else {
      Vec3 var1 = RandomPositionGenerator.func_75464_a(this.field_75431_a, 16, 7, this.field_75431_a.field_70170_p.func_82732_R().func_72345_a(this.field_75429_b.field_70165_t, this.field_75429_b.field_70163_u, this.field_75429_b.field_70161_v));
      if(var1 == null) {
         return false;
      } else {
         this.field_75430_c = var1.field_72450_a;
         this.field_75427_d = var1.field_72448_b;
         this.field_75428_e = var1.field_72449_c;
         return true;
      }
   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:19,代码来源:EntityAIMoveTowardsTarget.java

示例3: func_75249_e

import net.minecraft.entity.ai.RandomPositionGenerator; //导入方法依赖的package包/类
public void func_75249_e() {
   this.field_75423_c = -1;
   if(this.field_75424_a.func_70092_e((double)this.field_75422_b.func_75471_a(), (double)this.field_75422_b.field_75479_b, (double)this.field_75422_b.func_75472_c()) > 256.0D) {
      Vec3 var1 = RandomPositionGenerator.func_75464_a(this.field_75424_a, 14, 3, this.field_75424_a.field_70170_p.func_82732_R().func_72345_a((double)this.field_75422_b.func_75471_a() + 0.5D, (double)this.field_75422_b.func_75473_b(), (double)this.field_75422_b.func_75472_c() + 0.5D));
      if(var1 != null) {
         this.field_75424_a.func_70661_as().func_75492_a(var1.field_72450_a, var1.field_72448_b, var1.field_72449_c, 1.0D);
      }
   } else {
      this.field_75424_a.func_70661_as().func_75492_a((double)this.field_75422_b.func_75471_a() + 0.5D, (double)this.field_75422_b.func_75473_b(), (double)this.field_75422_b.func_75472_c() + 0.5D, 1.0D);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:13,代码来源:EntityAIMoveIndoors.java

示例4: func_75250_a

import net.minecraft.entity.ai.RandomPositionGenerator; //导入方法依赖的package包/类
public boolean func_75250_a() {
   this.func_75414_f();
   if(this.field_75417_e && this.field_75420_a.field_70170_p.func_72935_r()) {
      return false;
   } else {
      Village var1 = this.field_75420_a.field_70170_p.field_72982_D.func_75550_a(MathHelper.func_76128_c(this.field_75420_a.field_70165_t), MathHelper.func_76128_c(this.field_75420_a.field_70163_u), MathHelper.func_76128_c(this.field_75420_a.field_70161_v), 0);
      if(var1 == null) {
         return false;
      } else {
         this.field_75416_d = this.func_75412_a(var1);
         if(this.field_75416_d == null) {
            return false;
         } else {
            boolean var2 = this.field_75420_a.func_70661_as().func_75507_c();
            this.field_75420_a.func_70661_as().func_75498_b(false);
            this.field_75419_c = this.field_75420_a.func_70661_as().func_75488_a((double)this.field_75416_d.field_75481_a, (double)this.field_75416_d.field_75479_b, (double)this.field_75416_d.field_75480_c);
            this.field_75420_a.func_70661_as().func_75498_b(var2);
            if(this.field_75419_c != null) {
               return true;
            } else {
               Vec3 var3 = RandomPositionGenerator.func_75464_a(this.field_75420_a, 10, 7, this.field_75420_a.field_70170_p.func_82732_R().func_72345_a((double)this.field_75416_d.field_75481_a, (double)this.field_75416_d.field_75479_b, (double)this.field_75416_d.field_75480_c));
               if(var3 == null) {
                  return false;
               } else {
                  this.field_75420_a.func_70661_as().func_75498_b(false);
                  this.field_75419_c = this.field_75420_a.func_70661_as().func_75488_a(var3.field_72450_a, var3.field_72448_b, var3.field_72449_c);
                  this.field_75420_a.func_70661_as().func_75498_b(var2);
                  return this.field_75419_c != null;
               }
            }
         }
      }
   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:35,代码来源:EntityAIMoveThroughVillage.java


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