本文整理汇总了Java中net.minecraft.village.Village.getVillageDoorInfoList方法的典型用法代码示例。如果您正苦于以下问题:Java Village.getVillageDoorInfoList方法的具体用法?Java Village.getVillageDoorInfoList怎么用?Java Village.getVillageDoorInfoList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.village.Village
的用法示例。
在下文中一共展示了Village.getVillageDoorInfoList方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findNearestDoor
import net.minecraft.village.Village; //导入方法依赖的package包/类
private VillageDoorInfo findNearestDoor(Village villageIn)
{
VillageDoorInfo villagedoorinfo = null;
int i = Integer.MAX_VALUE;
for (VillageDoorInfo villagedoorinfo1 : villageIn.getVillageDoorInfoList())
{
int j = villagedoorinfo1.getDistanceSquared(MathHelper.floor_double(this.theEntity.posX), MathHelper.floor_double(this.theEntity.posY), MathHelper.floor_double(this.theEntity.posZ));
if (j < i && !this.doesDoorListContain(villagedoorinfo1))
{
villagedoorinfo = villagedoorinfo1;
i = j;
}
}
return villagedoorinfo;
}
示例2: findNearestDoor
import net.minecraft.village.Village; //导入方法依赖的package包/类
private VillageDoorInfo findNearestDoor(Village villageIn)
{
VillageDoorInfo villagedoorinfo = null;
int i = Integer.MAX_VALUE;
for (VillageDoorInfo villagedoorinfo1 : villageIn.getVillageDoorInfoList())
{
int j = villagedoorinfo1.getDistanceSquared(MathHelper.floor(this.theEntity.posX), MathHelper.floor(this.theEntity.posY), MathHelper.floor(this.theEntity.posZ));
if (j < i && !this.doesDoorListContain(villagedoorinfo1))
{
villagedoorinfo = villagedoorinfo1;
i = j;
}
}
return villagedoorinfo;
}
示例3: func_75412_a
import net.minecraft.village.Village; //导入方法依赖的package包/类
private VillageDoorInfo func_75412_a(Village par1Village)
{
VillageDoorInfo var2 = null;
int var3 = Integer.MAX_VALUE;
List var4 = par1Village.getVillageDoorInfoList();
Iterator var5 = var4.iterator();
while (var5.hasNext())
{
VillageDoorInfo var6 = (VillageDoorInfo)var5.next();
int var7 = var6.getDistanceSquared(MathHelper.floor_double(this.theEntity.posX), MathHelper.floor_double(this.theEntity.posY), MathHelper.floor_double(this.theEntity.posZ));
if (var7 < var3 && !this.func_75413_a(var6))
{
var2 = var6;
var3 = var7;
}
}
return var2;
}
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:22,代码来源:EntityAIMoveThroughVillage.java
示例4: func_75412_a
import net.minecraft.village.Village; //导入方法依赖的package包/类
private VillageDoorInfo func_75412_a(Village p_75412_1_)
{
VillageDoorInfo villagedoorinfo = null;
int i = Integer.MAX_VALUE;
List list = p_75412_1_.getVillageDoorInfoList();
Iterator iterator = list.iterator();
while (iterator.hasNext())
{
VillageDoorInfo villagedoorinfo1 = (VillageDoorInfo)iterator.next();
int j = villagedoorinfo1.getDistanceSquared(MathHelper.floor_double(this.theEntity.posX), MathHelper.floor_double(this.theEntity.posY), MathHelper.floor_double(this.theEntity.posZ));
if (j < i && !this.func_75413_a(villagedoorinfo1))
{
villagedoorinfo = villagedoorinfo1;
i = j;
}
}
return villagedoorinfo;
}
示例5: func_75412_a
import net.minecraft.village.Village; //导入方法依赖的package包/类
private VillageDoorInfo func_75412_a(Village par1Village)
{
VillageDoorInfo villagedoorinfo = null;
int i = Integer.MAX_VALUE;
List list = par1Village.getVillageDoorInfoList();
Iterator iterator = list.iterator();
while (iterator.hasNext())
{
VillageDoorInfo villagedoorinfo1 = (VillageDoorInfo)iterator.next();
int j = villagedoorinfo1.getDistanceSquared(MathHelper.floor_double(this.theEntity.posX), MathHelper.floor_double(this.theEntity.posY), MathHelper.floor_double(this.theEntity.posZ));
if (j < i && !this.func_75413_a(villagedoorinfo1))
{
villagedoorinfo = villagedoorinfo1;
i = j;
}
}
return villagedoorinfo;
}