public static VillageComponentCustomCropField buildComponent( List pieces, int p1, int p2, int p3, int p4) { StructureBoundingBox boundingBox = StructureBoundingBox.getComponentToAddBoundingBox( p1, p2, p3, 0, 0, 0, xSize, ySize, zSize, p4); return canVillageGoDeeper(boundingBox) && StructureComponent.findIntersecting(pieces, boundingBox) == null ? new VillageComponentCustomCropField(boundingBox, p4) : null; }
public static ComponentSkyStrongholdChestCorridor findValidPlacement( List par0List, Random par1Random, int par2, int par3, int par4, int par5, int par6) { StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox( par2, par3, par4, -1, -1, 0, 5, 5, 7, par5); return canStrongholdGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(par0List, structureboundingbox) == null ? new ComponentSkyStrongholdChestCorridor(par6, par1Random, structureboundingbox, par5) : null; }
/** * Creates and returns a new component piece. Or null if it could not find enough room to place * it. */ public static ComponentNetherBridgeStairs createValidComponent( List par0List, Random par1Random, int par2, int par3, int par4, int par5, int par6) { StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox( par2, par3, par4, -2, 0, 0, 7, 11, 7, par5); return isAboveGround(structureboundingbox) && StructureComponent.findIntersecting(par0List, structureboundingbox) == null ? new ComponentNetherBridgeStairs(par6, par1Random, structureboundingbox, par5) : null; }
@SuppressWarnings("rawtypes") public static StructureBoundingBox func_74904_a( GCMoonComponentVillageStartPiece par0ComponentVillageStartPiece, List par1List, Random par2Random, int par3, int par4, int par5, int par6) { final StructureBoundingBox var7 = StructureBoundingBox.getComponentToAddBoundingBox(par3, par4, par5, 0, 0, 0, 3, 4, 2, par6); return StructureComponent.findIntersecting(par1List, var7) != null ? null : var7; }
@SuppressWarnings("rawtypes") public static StructureComponentVillageField func_74900_a( StructureComponentVillageStartPiece par0ComponentVillageStartPiece, List par1List, Random par2Random, int par3, int par4, int par5, int par6, int par7) { final StructureBoundingBox var8 = StructureBoundingBox.getComponentToAddBoundingBox( par3, par4, par5, 0, 0, 0, 13, 4, 9, par6); return StructureComponent.findIntersecting(par1List, var8) == null ? new StructureComponentVillageField( par0ComponentVillageStartPiece, par7, par2Random, var8, par6) : null; }
@SuppressWarnings("rawtypes") public static StructureBoundingBox func_74933_a( StructureComponentSaturnVillageStartPiece par0ComponentVillageStartPiece, List par1List, Random par2Random, int par3, int par4, int par5, int par6) { for (int var7 = 7 * MathHelper.getRandomIntegerInRange(par2Random, 3, 5); var7 >= 7; var7 -= 7) { final StructureBoundingBox var8 = StructureBoundingBox.getComponentToAddBoundingBox( par3, par4, par5, 0, 0, 0, 3, 3, var7, par6); if (StructureComponent.findIntersecting(par1List, var8) == null) { return var8; } } return null; }
public static StructureBoundingBox getStructureBoundingBox( int par3, int par4, int par5, int par6) { return StructureBoundingBox.getComponentToAddBoundingBox( par3, par4, par5, 0, -4, 0, 9, 6, 7, par6); }