Java 类net.minecraft.world.gen.structure.ComponentVillageStartPiece 实例源码

项目:RuneCraftery    文件:StructureVillagePieces.java   
private static ComponentVillage func_75083_a(ComponentVillageStartPiece p_75083_0_, StructureVillagePieceWeight p_75083_1_, List p_75083_2_, Random p_75083_3_, int p_75083_4_, int p_75083_5_, int p_75083_6_, int p_75083_7_, int p_75083_8_) {
   Class var9 = p_75083_1_.field_75090_a;
   Object var10 = null;
   if(var9 == ComponentVillageHouse4_Garden.class) {
      var10 = ComponentVillageHouse4_Garden.func_74912_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
   } else if(var9 == ComponentVillageChurch.class) {
      var10 = ComponentVillageChurch.func_74919_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
   } else if(var9 == ComponentVillageHouse1.class) {
      var10 = ComponentVillageHouse1.func_74898_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
   } else if(var9 == ComponentVillageWoodHut.class) {
      var10 = ComponentVillageWoodHut.func_74908_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
   } else if(var9 == ComponentVillageHall.class) {
      var10 = ComponentVillageHall.func_74906_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
   } else if(var9 == ComponentVillageField.class) {
      var10 = ComponentVillageField.func_74900_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
   } else if(var9 == ComponentVillageField2.class) {
      var10 = ComponentVillageField2.func_74902_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
   } else if(var9 == ComponentVillageHouse2.class) {
      var10 = ComponentVillageHouse2.func_74915_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
   } else if(var9 == ComponentVillageHouse3.class) {
      var10 = ComponentVillageHouse3.func_74921_a(p_75083_0_, p_75083_2_, p_75083_3_, p_75083_4_, p_75083_5_, p_75083_6_, p_75083_7_, p_75083_8_);
   }

   return (ComponentVillage)var10;
}
项目:RuneCraftery    文件:StructureVillagePieces.java   
private static StructureComponent func_75077_d(ComponentVillageStartPiece p_75077_0_, List p_75077_1_, Random p_75077_2_, int p_75077_3_, int p_75077_4_, int p_75077_5_, int p_75077_6_, int p_75077_7_) {
   if(p_75077_7_ > 50) {
      return null;
   } else if(Math.abs(p_75077_3_ - p_75077_0_.func_74874_b().field_78897_a) <= 112 && Math.abs(p_75077_5_ - p_75077_0_.func_74874_b().field_78896_c) <= 112) {
      ComponentVillage var8 = func_75081_c(p_75077_0_, p_75077_1_, p_75077_2_, p_75077_3_, p_75077_4_, p_75077_5_, p_75077_6_, p_75077_7_ + 1);
      if(var8 != null) {
         int var9 = (var8.field_74887_e.field_78897_a + var8.field_74887_e.field_78893_d) / 2;
         int var10 = (var8.field_74887_e.field_78896_c + var8.field_74887_e.field_78892_f) / 2;
         int var11 = var8.field_74887_e.field_78893_d - var8.field_74887_e.field_78897_a;
         int var12 = var8.field_74887_e.field_78892_f - var8.field_74887_e.field_78896_c;
         int var13 = var11 > var12?var11:var12;
         if(p_75077_0_.func_74925_d().func_76940_a(var9, var10, var13 / 2 + 4, MapGenVillage.field_75055_e)) {
            p_75077_1_.add(var8);
            p_75077_0_.field_74932_i.add(var8);
            return var8;
         }
      }

      return null;
   } else {
      return null;
   }
}
项目:RuneCraftery    文件:StructureVillagePieces.java   
private static StructureComponent func_75080_e(ComponentVillageStartPiece p_75080_0_, List p_75080_1_, Random p_75080_2_, int p_75080_3_, int p_75080_4_, int p_75080_5_, int p_75080_6_, int p_75080_7_) {
   if(p_75080_7_ > 3 + p_75080_0_.field_74928_c) {
      return null;
   } else if(Math.abs(p_75080_3_ - p_75080_0_.func_74874_b().field_78897_a) <= 112 && Math.abs(p_75080_5_ - p_75080_0_.func_74874_b().field_78896_c) <= 112) {
      StructureBoundingBox var8 = ComponentVillagePathGen.func_74933_a(p_75080_0_, p_75080_1_, p_75080_2_, p_75080_3_, p_75080_4_, p_75080_5_, p_75080_6_);
      if(var8 != null && var8.field_78895_b > 10) {
         ComponentVillagePathGen var9 = new ComponentVillagePathGen(p_75080_0_, p_75080_7_, p_75080_2_, var8, p_75080_6_);
         int var10 = (var9.field_74887_e.field_78897_a + var9.field_74887_e.field_78893_d) / 2;
         int var11 = (var9.field_74887_e.field_78896_c + var9.field_74887_e.field_78892_f) / 2;
         int var12 = var9.field_74887_e.field_78893_d - var9.field_74887_e.field_78897_a;
         int var13 = var9.field_74887_e.field_78892_f - var9.field_74887_e.field_78896_c;
         int var14 = var12 > var13?var12:var13;
         if(p_75080_0_.func_74925_d().func_76940_a(var10, var11, var14 / 2 + 4, MapGenVillage.field_75055_e)) {
            p_75080_1_.add(var9);
            p_75080_0_.field_74930_j.add(var9);
            return var9;
         }
      }

      return null;
   } else {
      return null;
   }
}
项目:RuneCraftery    文件:ComponentVillageWell.java   
public ComponentVillageWell(ComponentVillageStartPiece p_i2109_1_, int p_i2109_2_, Random p_i2109_3_, int p_i2109_4_, int p_i2109_5_) {
   super(p_i2109_1_, p_i2109_2_);
   this.field_74885_f = p_i2109_3_.nextInt(4);
   switch(this.field_74885_f) {
   case 0:
   case 2:
      this.field_74887_e = new StructureBoundingBox(p_i2109_4_, 64, p_i2109_5_, p_i2109_4_ + 6 - 1, 78, p_i2109_5_ + 6 - 1);
      break;
   default:
      this.field_74887_e = new StructureBoundingBox(p_i2109_4_, 64, p_i2109_5_, p_i2109_4_ + 6 - 1, 78, p_i2109_5_ + 6 - 1);
   }

}
项目:RuneCraftery    文件:ComponentVillageField.java   
public ComponentVillageField(ComponentVillageStartPiece p_i2095_1_, int p_i2095_2_, Random p_i2095_3_, StructureBoundingBox p_i2095_4_, int p_i2095_5_) {
   super(p_i2095_1_, p_i2095_2_);
   this.field_74885_f = p_i2095_5_;
   this.field_74887_e = p_i2095_4_;
   this.field_82679_b = this.func_82677_a(p_i2095_3_);
   this.field_82680_c = this.func_82677_a(p_i2095_3_);
   this.field_82678_d = this.func_82677_a(p_i2095_3_);
   this.field_82681_h = this.func_82677_a(p_i2095_3_);
}
项目:RuneCraftery    文件:ComponentVillageField2.java   
public ComponentVillageField2(ComponentVillageStartPiece p_i2096_1_, int p_i2096_2_, Random p_i2096_3_, StructureBoundingBox p_i2096_4_, int p_i2096_5_) {
   super(p_i2096_1_, p_i2096_2_);
   this.field_74885_f = p_i2096_5_;
   this.field_74887_e = p_i2096_4_;
   this.field_82675_b = this.func_82674_a(p_i2096_3_);
   this.field_82676_c = this.func_82674_a(p_i2096_3_);
}
项目:RuneCraftery    文件:ComponentVillagePathGen.java   
public static StructureBoundingBox func_74933_a(ComponentVillageStartPiece p_74933_0_, List p_74933_1_, Random p_74933_2_, int p_74933_3_, int p_74933_4_, int p_74933_5_, int p_74933_6_) {
   for(int var7 = 7 * MathHelper.func_76136_a(p_74933_2_, 3, 5); var7 >= 7; var7 -= 7) {
      StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74933_3_, p_74933_4_, p_74933_5_, 0, 0, 0, 3, 3, var7, p_74933_6_);
      if(StructureComponent.func_74883_a(p_74933_1_, var8) == null) {
         return var8;
      }
   }

   return null;
}
项目:RuneCraftery    文件:ComponentVillageWoodHut.java   
public ComponentVillageWoodHut(ComponentVillageStartPiece p_i2101_1_, int p_i2101_2_, Random p_i2101_3_, StructureBoundingBox p_i2101_4_, int p_i2101_5_) {
   super(p_i2101_1_, p_i2101_2_);
   this.field_74885_f = p_i2101_5_;
   this.field_74887_e = p_i2101_4_;
   this.field_74909_b = p_i2101_3_.nextBoolean();
   this.field_74910_c = p_i2101_3_.nextInt(3);
}
项目:RuneCraftery    文件:ComponentVillage.java   
protected ComponentVillage(ComponentVillageStartPiece p_i2107_1_, int p_i2107_2_) {
   super(p_i2107_2_);
   if(p_i2107_1_ != null) {
      this.field_143014_b = p_i2107_1_.field_74927_b;
   }

}
项目:RuneCraftery    文件:ComponentVillage.java   
protected StructureComponent func_74891_a(ComponentVillageStartPiece p_74891_1_, List p_74891_2_, Random p_74891_3_, int p_74891_4_, int p_74891_5_) {
   switch(this.field_74885_f) {
   case 0:
      return StructureVillagePieces.func_75078_a(p_74891_1_, p_74891_2_, p_74891_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b + p_74891_4_, this.field_74887_e.field_78896_c + p_74891_5_, 1, this.func_74877_c());
   case 1:
      return StructureVillagePieces.func_75078_a(p_74891_1_, p_74891_2_, p_74891_3_, this.field_74887_e.field_78897_a + p_74891_5_, this.field_74887_e.field_78895_b + p_74891_4_, this.field_74887_e.field_78896_c - 1, 2, this.func_74877_c());
   case 2:
      return StructureVillagePieces.func_75078_a(p_74891_1_, p_74891_2_, p_74891_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b + p_74891_4_, this.field_74887_e.field_78896_c + p_74891_5_, 1, this.func_74877_c());
   case 3:
      return StructureVillagePieces.func_75078_a(p_74891_1_, p_74891_2_, p_74891_3_, this.field_74887_e.field_78897_a + p_74891_5_, this.field_74887_e.field_78895_b + p_74891_4_, this.field_74887_e.field_78896_c - 1, 2, this.func_74877_c());
   default:
      return null;
   }
}
项目:RuneCraftery    文件:ComponentVillage.java   
protected StructureComponent func_74894_b(ComponentVillageStartPiece p_74894_1_, List p_74894_2_, Random p_74894_3_, int p_74894_4_, int p_74894_5_) {
   switch(this.field_74885_f) {
   case 0:
      return StructureVillagePieces.func_75078_a(p_74894_1_, p_74894_2_, p_74894_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b + p_74894_4_, this.field_74887_e.field_78896_c + p_74894_5_, 3, this.func_74877_c());
   case 1:
      return StructureVillagePieces.func_75078_a(p_74894_1_, p_74894_2_, p_74894_3_, this.field_74887_e.field_78897_a + p_74894_5_, this.field_74887_e.field_78895_b + p_74894_4_, this.field_74887_e.field_78892_f + 1, 0, this.func_74877_c());
   case 2:
      return StructureVillagePieces.func_75078_a(p_74894_1_, p_74894_2_, p_74894_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b + p_74894_4_, this.field_74887_e.field_78896_c + p_74894_5_, 3, this.func_74877_c());
   case 3:
      return StructureVillagePieces.func_75078_a(p_74894_1_, p_74894_2_, p_74894_3_, this.field_74887_e.field_78897_a + p_74894_5_, this.field_74887_e.field_78895_b + p_74894_4_, this.field_74887_e.field_78892_f + 1, 0, this.func_74877_c());
   default:
      return null;
   }
}
项目:RuneCraftery    文件:StructureVillagePieces.java   
public static void func_143016_a() {
   MapGenStructureIO.func_143031_a(ComponentVillageHouse1.class, "ViBH");
   MapGenStructureIO.func_143031_a(ComponentVillageField.class, "ViDF");
   MapGenStructureIO.func_143031_a(ComponentVillageField2.class, "ViF");
   MapGenStructureIO.func_143031_a(ComponentVillageTorch.class, "ViL");
   MapGenStructureIO.func_143031_a(ComponentVillageHall.class, "ViPH");
   MapGenStructureIO.func_143031_a(ComponentVillageHouse4_Garden.class, "ViSH");
   MapGenStructureIO.func_143031_a(ComponentVillageWoodHut.class, "ViSmH");
   MapGenStructureIO.func_143031_a(ComponentVillageChurch.class, "ViST");
   MapGenStructureIO.func_143031_a(ComponentVillageHouse2.class, "ViS");
   MapGenStructureIO.func_143031_a(ComponentVillageStartPiece.class, "ViStart");
   MapGenStructureIO.func_143031_a(ComponentVillagePathGen.class, "ViSR");
   MapGenStructureIO.func_143031_a(ComponentVillageHouse3.class, "ViTRH");
   MapGenStructureIO.func_143031_a(ComponentVillageWell.class, "ViW");
}
项目:CcmBurialServicesInc    文件:GraveyardComponent.java   
public GraveyardComponent(ComponentVillageStartPiece villagePiece, int componentType, Random random, StructureBoundingBox structureboundingbox, int coordBaseMode)
{
    super(villagePiece, componentType);
    this.coordBaseMode = coordBaseMode;
    this.boundingBox = structureboundingbox;
}
项目:CcmBurialServicesInc    文件:GraveyardComponent.java   
public static GraveyardComponent buildComponent(ComponentVillageStartPiece villagePiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5)
{
    StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(p1, p2, p3, 0, 0, 0, 10, 4, 10, p4);
    return canVillageGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(pieces, structureboundingbox) == null ? new GraveyardComponent(villagePiece, p5, random, structureboundingbox, p4) : null;
}
项目:CcmBurialServicesInc    文件:GraveyardHandler.java   
@Override
public Object buildComponent(StructureVillagePieceWeight villagePiece, ComponentVillageStartPiece startPiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5)
{
    return GraveyardComponent.buildComponent(startPiece, pieces, random, p1, p2, p3, p4, p5);
}
项目:Rediscovered-Mod-1.6.4    文件:GreenRegistry.java   
public static Object getVillageComponent(StructureVillagePieceWeight villagePiece, ComponentVillageStartPiece startPiece, List pieces, Random random,
        int p1, int p2, int p3, int p4, int p5)
{
    return instance().villageCreationHandlers.get(villagePiece.villagePieceClass).buildComponent(villagePiece, startPiece, pieces, random, p1, p2, p3, p4, p5);
}
项目:Rediscovered-Mod-1.6.4    文件:PigmenRegistry.java   
public static Object getVillageComponent(StructureVillagePieceWeight villagePiece, ComponentVillageStartPiece startPiece, List pieces, Random random,
        int p1, int p2, int p3, int p4, int p5)
{
    return instance().villageCreationHandlers.get(villagePiece.villagePieceClass).buildComponent(villagePiece, startPiece, pieces, random, p1, p2, p3, p4, p5);
}
项目:RuneCraftery    文件:VillagerRegistry.java   
public static Object getVillageComponent(StructureVillagePieceWeight villagePiece, ComponentVillageStartPiece startPiece, List pieces, Random random,
        int p1, int p2, int p3, int p4, int p5)
{
    return instance().villageCreationHandlers.get(villagePiece.field_75090_a).buildComponent(villagePiece, startPiece, pieces, random, p1, p2, p3, p4, p5);
}
项目:RuneCraftery    文件:ComponentVillageChurch.java   
public ComponentVillageChurch(ComponentVillageStartPiece p_i2102_1_, int p_i2102_2_, Random p_i2102_3_, StructureBoundingBox p_i2102_4_, int p_i2102_5_) {
   super(p_i2102_1_, p_i2102_2_);
   this.field_74885_f = p_i2102_5_;
   this.field_74887_e = p_i2102_4_;
}
项目:RuneCraftery    文件:ComponentVillageChurch.java   
public static ComponentVillageChurch func_74919_a(ComponentVillageStartPiece p_74919_0_, List p_74919_1_, Random p_74919_2_, int p_74919_3_, int p_74919_4_, int p_74919_5_, int p_74919_6_, int p_74919_7_) {
   StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74919_3_, p_74919_4_, p_74919_5_, 0, 0, 0, 5, 12, 9, p_74919_6_);
   return func_74895_a(var8) && StructureComponent.func_74883_a(p_74919_1_, var8) == null?new ComponentVillageChurch(p_74919_0_, p_74919_7_, p_74919_2_, var8, p_74919_6_):null;
}
项目:RuneCraftery    文件:ComponentVillageWell.java   
public void func_74861_a(StructureComponent p_74861_1_, List p_74861_2_, Random p_74861_3_) {
   StructureVillagePieces.func_75082_b((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78894_e - 4, this.field_74887_e.field_78896_c + 1, 1, this.func_74877_c());
   StructureVillagePieces.func_75082_b((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78894_e - 4, this.field_74887_e.field_78896_c + 1, 3, this.func_74877_c());
   StructureVillagePieces.func_75082_b((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78894_e - 4, this.field_74887_e.field_78896_c - 1, 2, this.func_74877_c());
   StructureVillagePieces.func_75082_b((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a + 1, this.field_74887_e.field_78894_e - 4, this.field_74887_e.field_78892_f + 1, 0, this.func_74877_c());
}
项目:RuneCraftery    文件:ComponentVillageRoadPiece.java   
protected ComponentVillageRoadPiece(ComponentVillageStartPiece p_i2108_1_, int p_i2108_2_) {
   super(p_i2108_1_, p_i2108_2_);
}
项目:RuneCraftery    文件:ComponentVillageHouse3.java   
public ComponentVillageHouse3(ComponentVillageStartPiece p_i2106_1_, int p_i2106_2_, Random p_i2106_3_, StructureBoundingBox p_i2106_4_, int p_i2106_5_) {
   super(p_i2106_1_, p_i2106_2_);
   this.field_74885_f = p_i2106_5_;
   this.field_74887_e = p_i2106_4_;
}
项目:RuneCraftery    文件:ComponentVillageHouse3.java   
public static ComponentVillageHouse3 func_74921_a(ComponentVillageStartPiece p_74921_0_, List p_74921_1_, Random p_74921_2_, int p_74921_3_, int p_74921_4_, int p_74921_5_, int p_74921_6_, int p_74921_7_) {
   StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74921_3_, p_74921_4_, p_74921_5_, 0, 0, 0, 9, 7, 12, p_74921_6_);
   return func_74895_a(var8) && StructureComponent.func_74883_a(p_74921_1_, var8) == null?new ComponentVillageHouse3(p_74921_0_, p_74921_7_, p_74921_2_, var8, p_74921_6_):null;
}
项目:RuneCraftery    文件:ComponentVillageHouse4_Garden.java   
public ComponentVillageHouse4_Garden(ComponentVillageStartPiece p_i2100_1_, int p_i2100_2_, Random p_i2100_3_, StructureBoundingBox p_i2100_4_, int p_i2100_5_) {
   super(p_i2100_1_, p_i2100_2_);
   this.field_74885_f = p_i2100_5_;
   this.field_74887_e = p_i2100_4_;
   this.field_74913_b = p_i2100_3_.nextBoolean();
}
项目:RuneCraftery    文件:ComponentVillageHouse4_Garden.java   
public static ComponentVillageHouse4_Garden func_74912_a(ComponentVillageStartPiece p_74912_0_, List p_74912_1_, Random p_74912_2_, int p_74912_3_, int p_74912_4_, int p_74912_5_, int p_74912_6_, int p_74912_7_) {
   StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74912_3_, p_74912_4_, p_74912_5_, 0, 0, 0, 5, 6, 5, p_74912_6_);
   return StructureComponent.func_74883_a(p_74912_1_, var8) != null?null:new ComponentVillageHouse4_Garden(p_74912_0_, p_74912_7_, p_74912_2_, var8, p_74912_6_);
}
项目:RuneCraftery    文件:ComponentVillageField.java   
public static ComponentVillageField func_74900_a(ComponentVillageStartPiece p_74900_0_, List p_74900_1_, Random p_74900_2_, int p_74900_3_, int p_74900_4_, int p_74900_5_, int p_74900_6_, int p_74900_7_) {
   StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74900_3_, p_74900_4_, p_74900_5_, 0, 0, 0, 13, 4, 9, p_74900_6_);
   return func_74895_a(var8) && StructureComponent.func_74883_a(p_74900_1_, var8) == null?new ComponentVillageField(p_74900_0_, p_74900_7_, p_74900_2_, var8, p_74900_6_):null;
}
项目:RuneCraftery    文件:ComponentVillageHouse2.java   
public ComponentVillageHouse2(ComponentVillageStartPiece p_i2103_1_, int p_i2103_2_, Random p_i2103_3_, StructureBoundingBox p_i2103_4_, int p_i2103_5_) {
   super(p_i2103_1_, p_i2103_2_);
   this.field_74885_f = p_i2103_5_;
   this.field_74887_e = p_i2103_4_;
}
项目:RuneCraftery    文件:ComponentVillageHouse2.java   
public static ComponentVillageHouse2 func_74915_a(ComponentVillageStartPiece p_74915_0_, List p_74915_1_, Random p_74915_2_, int p_74915_3_, int p_74915_4_, int p_74915_5_, int p_74915_6_, int p_74915_7_) {
   StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74915_3_, p_74915_4_, p_74915_5_, 0, 0, 0, 10, 6, 7, p_74915_6_);
   return func_74895_a(var8) && StructureComponent.func_74883_a(p_74915_1_, var8) == null?new ComponentVillageHouse2(p_74915_0_, p_74915_7_, p_74915_2_, var8, p_74915_6_):null;
}
项目:RuneCraftery    文件:ComponentVillageField2.java   
public static ComponentVillageField2 func_74902_a(ComponentVillageStartPiece p_74902_0_, List p_74902_1_, Random p_74902_2_, int p_74902_3_, int p_74902_4_, int p_74902_5_, int p_74902_6_, int p_74902_7_) {
   StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74902_3_, p_74902_4_, p_74902_5_, 0, 0, 0, 7, 4, 9, p_74902_6_);
   return func_74895_a(var8) && StructureComponent.func_74883_a(p_74902_1_, var8) == null?new ComponentVillageField2(p_74902_0_, p_74902_7_, p_74902_2_, var8, p_74902_6_):null;
}
项目:RuneCraftery    文件:ComponentVillagePathGen.java   
public ComponentVillagePathGen(ComponentVillageStartPiece p_i2105_1_, int p_i2105_2_, Random p_i2105_3_, StructureBoundingBox p_i2105_4_, int p_i2105_5_) {
   super(p_i2105_1_, p_i2105_2_);
   this.field_74885_f = p_i2105_5_;
   this.field_74887_e = p_i2105_4_;
   this.field_74934_a = Math.max(p_i2105_4_.func_78883_b(), p_i2105_4_.func_78880_d());
}
项目:RuneCraftery    文件:ComponentVillagePathGen.java   
public void func_74861_a(StructureComponent p_74861_1_, List p_74861_2_, Random p_74861_3_) {
   boolean var4 = false;

   int var5;
   StructureComponent var6;
   for(var5 = p_74861_3_.nextInt(5); var5 < this.field_74934_a - 8; var5 += 2 + p_74861_3_.nextInt(5)) {
      var6 = this.func_74891_a((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, 0, var5);
      if(var6 != null) {
         var5 += Math.max(var6.field_74887_e.func_78883_b(), var6.field_74887_e.func_78880_d());
         var4 = true;
      }
   }

   for(var5 = p_74861_3_.nextInt(5); var5 < this.field_74934_a - 8; var5 += 2 + p_74861_3_.nextInt(5)) {
      var6 = this.func_74894_b((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, 0, var5);
      if(var6 != null) {
         var5 += Math.max(var6.field_74887_e.func_78883_b(), var6.field_74887_e.func_78880_d());
         var4 = true;
      }
   }

   if(var4 && p_74861_3_.nextInt(3) > 0) {
      switch(this.field_74885_f) {
      case 0:
         StructureVillagePieces.func_75082_b((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78892_f - 2, 1, this.func_74877_c());
         break;
      case 1:
         StructureVillagePieces.func_75082_b((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c - 1, 2, this.func_74877_c());
         break;
      case 2:
         StructureVillagePieces.func_75082_b((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a - 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c, 1, this.func_74877_c());
         break;
      case 3:
         StructureVillagePieces.func_75082_b((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d - 2, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c - 1, 2, this.func_74877_c());
      }
   }

   if(var4 && p_74861_3_.nextInt(3) > 0) {
      switch(this.field_74885_f) {
      case 0:
         StructureVillagePieces.func_75082_b((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78892_f - 2, 3, this.func_74877_c());
         break;
      case 1:
         StructureVillagePieces.func_75082_b((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78897_a, this.field_74887_e.field_78895_b, this.field_74887_e.field_78892_f + 1, 0, this.func_74877_c());
         break;
      case 2:
         StructureVillagePieces.func_75082_b((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d + 1, this.field_74887_e.field_78895_b, this.field_74887_e.field_78896_c, 3, this.func_74877_c());
         break;
      case 3:
         StructureVillagePieces.func_75082_b((ComponentVillageStartPiece)p_74861_1_, p_74861_2_, p_74861_3_, this.field_74887_e.field_78893_d - 2, this.field_74887_e.field_78895_b, this.field_74887_e.field_78892_f + 1, 0, this.func_74877_c());
      }
   }

}
项目:RuneCraftery    文件:ComponentVillageWoodHut.java   
public static ComponentVillageWoodHut func_74908_a(ComponentVillageStartPiece p_74908_0_, List p_74908_1_, Random p_74908_2_, int p_74908_3_, int p_74908_4_, int p_74908_5_, int p_74908_6_, int p_74908_7_) {
   StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74908_3_, p_74908_4_, p_74908_5_, 0, 0, 0, 4, 6, 5, p_74908_6_);
   return func_74895_a(var8) && StructureComponent.func_74883_a(p_74908_1_, var8) == null?new ComponentVillageWoodHut(p_74908_0_, p_74908_7_, p_74908_2_, var8, p_74908_6_):null;
}
项目:RuneCraftery    文件:ComponentVillageHall.java   
public ComponentVillageHall(ComponentVillageStartPiece p_i2099_1_, int p_i2099_2_, Random p_i2099_3_, StructureBoundingBox p_i2099_4_, int p_i2099_5_) {
   super(p_i2099_1_, p_i2099_2_);
   this.field_74885_f = p_i2099_5_;
   this.field_74887_e = p_i2099_4_;
}
项目:RuneCraftery    文件:ComponentVillageHall.java   
public static ComponentVillageHall func_74906_a(ComponentVillageStartPiece p_74906_0_, List p_74906_1_, Random p_74906_2_, int p_74906_3_, int p_74906_4_, int p_74906_5_, int p_74906_6_, int p_74906_7_) {
   StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74906_3_, p_74906_4_, p_74906_5_, 0, 0, 0, 9, 7, 11, p_74906_6_);
   return func_74895_a(var8) && StructureComponent.func_74883_a(p_74906_1_, var8) == null?new ComponentVillageHall(p_74906_0_, p_74906_7_, p_74906_2_, var8, p_74906_6_):null;
}
项目:RuneCraftery    文件:ComponentVillageTorch.java   
public ComponentVillageTorch(ComponentVillageStartPiece p_i2097_1_, int p_i2097_2_, Random p_i2097_3_, StructureBoundingBox p_i2097_4_, int p_i2097_5_) {
   super(p_i2097_1_, p_i2097_2_);
   this.field_74885_f = p_i2097_5_;
   this.field_74887_e = p_i2097_4_;
}
项目:RuneCraftery    文件:ComponentVillageTorch.java   
public static StructureBoundingBox func_74904_a(ComponentVillageStartPiece p_74904_0_, List p_74904_1_, Random p_74904_2_, int p_74904_3_, int p_74904_4_, int p_74904_5_, int p_74904_6_) {
   StructureBoundingBox var7 = StructureBoundingBox.func_78889_a(p_74904_3_, p_74904_4_, p_74904_5_, 0, 0, 0, 3, 4, 2, p_74904_6_);
   return StructureComponent.func_74883_a(p_74904_1_, var7) != null?null:var7;
}
项目:RuneCraftery    文件:ComponentVillageHouse1.java   
public ComponentVillageHouse1(ComponentVillageStartPiece p_i2094_1_, int p_i2094_2_, Random p_i2094_3_, StructureBoundingBox p_i2094_4_, int p_i2094_5_) {
   super(p_i2094_1_, p_i2094_2_);
   this.field_74885_f = p_i2094_5_;
   this.field_74887_e = p_i2094_4_;
}
项目:RuneCraftery    文件:ComponentVillageHouse1.java   
public static ComponentVillageHouse1 func_74898_a(ComponentVillageStartPiece p_74898_0_, List p_74898_1_, Random p_74898_2_, int p_74898_3_, int p_74898_4_, int p_74898_5_, int p_74898_6_, int p_74898_7_) {
   StructureBoundingBox var8 = StructureBoundingBox.func_78889_a(p_74898_3_, p_74898_4_, p_74898_5_, 0, 0, 0, 9, 9, 6, p_74898_6_);
   return func_74895_a(var8) && StructureComponent.func_74883_a(p_74898_1_, var8) == null?new ComponentVillageHouse1(p_74898_0_, p_74898_7_, p_74898_2_, var8, p_74898_6_):null;
}
项目:RuneCraftery    文件:StructureVillagePieces.java   
private static ComponentVillage func_75081_c(ComponentVillageStartPiece p_75081_0_, List p_75081_1_, Random p_75081_2_, int p_75081_3_, int p_75081_4_, int p_75081_5_, int p_75081_6_, int p_75081_7_) {
   int var8 = func_75079_a(p_75081_0_.field_74931_h);
   if(var8 <= 0) {
      return null;
   } else {
      int var9 = 0;

      while(var9 < 5) {
         ++var9;
         int var10 = p_75081_2_.nextInt(var8);
         Iterator var11 = p_75081_0_.field_74931_h.iterator();

         while(var11.hasNext()) {
            StructureVillagePieceWeight var12 = (StructureVillagePieceWeight)var11.next();
            var10 -= var12.field_75088_b;
            if(var10 < 0) {
               if(!var12.func_75085_a(p_75081_7_) || var12 == p_75081_0_.field_74926_d && p_75081_0_.field_74931_h.size() > 1) {
                  break;
               }

               ComponentVillage var13 = func_75083_a(p_75081_0_, var12, p_75081_1_, p_75081_2_, p_75081_3_, p_75081_4_, p_75081_5_, p_75081_6_, p_75081_7_);
               if(var13 != null) {
                  ++var12.field_75089_c;
                  p_75081_0_.field_74926_d = var12;
                  if(!var12.func_75086_a()) {
                     p_75081_0_.field_74931_h.remove(var12);
                  }

                  return var13;
               }
            }
         }
      }

      StructureBoundingBox var14 = ComponentVillageTorch.func_74904_a(p_75081_0_, p_75081_1_, p_75081_2_, p_75081_3_, p_75081_4_, p_75081_5_, p_75081_6_);
      if(var14 != null) {
         return new ComponentVillageTorch(p_75081_0_, p_75081_7_, p_75081_2_, var14, p_75081_6_);
      } else {
         return null;
      }
   }
}