public static StructureBoundingBox func_35066_a( List p_35066_0_, Random p_35066_1_, int p_35066_2_, int p_35066_3_, int p_35066_4_, int p_35066_5_) { StructureBoundingBox structureboundingbox = new StructureBoundingBox( p_35066_2_, p_35066_3_, p_35066_4_, p_35066_2_, p_35066_3_ + 2, p_35066_4_); int i = p_35066_1_.nextInt(3) + 2; do { if (i <= 0) { break; } int j = i * 5; switch (p_35066_5_) { case 2: // '\002' structureboundingbox.field_35749_d = p_35066_2_ + 2; structureboundingbox.field_35752_c = p_35066_4_ - (j - 1); break; case 0: // '\0' structureboundingbox.field_35749_d = p_35066_2_ + 2; structureboundingbox.field_35748_f = p_35066_4_ + (j - 1); break; case 1: // '\001' structureboundingbox.field_35753_a = p_35066_2_ - (j - 1); structureboundingbox.field_35748_f = p_35066_4_ + 2; break; case 3: // '\003' structureboundingbox.field_35749_d = p_35066_2_ + (j - 1); structureboundingbox.field_35748_f = p_35066_4_ + 2; break; } if (StructureComponent.func_35020_a(p_35066_0_, structureboundingbox) == null) { break; } i--; } while (true); if (i > 0) { return structureboundingbox; } else { return null; } }
public static StructureBoundingBox func_35027_a( List p_35027_0_, Random p_35027_1_, int p_35027_2_, int p_35027_3_, int p_35027_4_, int p_35027_5_) { StructureBoundingBox structureboundingbox = new StructureBoundingBox( p_35027_2_, p_35027_3_ - 5, p_35027_4_, p_35027_2_, p_35027_3_ + 2, p_35027_4_); switch (p_35027_5_) { case 2: // '\002' structureboundingbox.field_35749_d = p_35027_2_ + 2; structureboundingbox.field_35752_c = p_35027_4_ - 8; break; case 0: // '\0' structureboundingbox.field_35749_d = p_35027_2_ + 2; structureboundingbox.field_35748_f = p_35027_4_ + 8; break; case 1: // '\001' structureboundingbox.field_35753_a = p_35027_2_ - 8; structureboundingbox.field_35748_f = p_35027_4_ + 2; break; case 3: // '\003' structureboundingbox.field_35749_d = p_35027_2_ + 8; structureboundingbox.field_35748_f = p_35027_4_ + 2; break; } if (StructureComponent.func_35020_a(p_35027_0_, structureboundingbox) != null) { return null; } else { return structureboundingbox; } }