本文整理汇总了Java中net.minecraft.world.gen.structure.StructureStart.func_75069_d方法的典型用法代码示例。如果您正苦于以下问题:Java StructureStart.func_75069_d方法的具体用法?Java StructureStart.func_75069_d怎么用?Java StructureStart.func_75069_d使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.world.gen.structure.StructureStart
的用法示例。
在下文中一共展示了StructureStart.func_75069_d方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_75051_a
import net.minecraft.world.gen.structure.StructureStart; //导入方法依赖的package包/类
public boolean func_75051_a(World p_75051_1_, Random p_75051_2_, int p_75051_3_, int p_75051_4_) {
this.func_143027_a(p_75051_1_);
int var5 = (p_75051_3_ << 4) + 8;
int var6 = (p_75051_4_ << 4) + 8;
boolean var7 = false;
Iterator var8 = this.field_75053_d.values().iterator();
while(var8.hasNext()) {
StructureStart var9 = (StructureStart)var8.next();
if(var9.func_75069_d() && var9.func_75071_a().func_78885_a(var5, var6, var5 + 15, var6 + 15)) {
var9.func_75068_a(p_75051_1_, p_75051_2_, new StructureBoundingBox(var5, var6, var5 + 15, var6 + 15));
var7 = true;
this.func_143026_a(var9.func_143019_e(), var9.func_143018_f(), var9);
}
}
return var7;
}
示例2: func_143028_c
import net.minecraft.world.gen.structure.StructureStart; //导入方法依赖的package包/类
protected StructureStart func_143028_c(int p_143028_1_, int p_143028_2_, int p_143028_3_) {
Iterator var4 = this.field_75053_d.values().iterator();
while(var4.hasNext()) {
StructureStart var5 = (StructureStart)var4.next();
if(var5.func_75069_d() && var5.func_75071_a().func_78885_a(p_143028_1_, p_143028_3_, p_143028_1_, p_143028_3_)) {
Iterator var6 = var5.func_75073_b().iterator();
while(var6.hasNext()) {
StructureComponent var7 = (StructureComponent)var6.next();
if(var7.func_74874_b().func_78890_b(p_143028_1_, p_143028_2_, p_143028_3_)) {
return var5;
}
}
}
}
return null;
}