    001package net.minecraft.world.gen.structure;
    002
    003import java.util.ArrayList;
    004import java.util.List;
    005import java.util.Random;
    006
    007public class ComponentNetherBridgeStartPiece extends ComponentNetherBridgeCrossing3
    008{
    009    /** Instance of StructureNetherBridgePieceWeight. */
    010    public StructureNetherBridgePieceWeight theNetherBridgePieceWeight;
    011
    012    /**
    013     * Contains the list of valid piece weights for the set of nether bridge structure pieces.
    014     */
    015    public List primaryWeights = new ArrayList();
    016
    017    /**
    018     * Contains the list of valid piece weights for the secondary set of nether bridge structure pieces.
    019     */
    020    public List secondaryWeights;
    021    public ArrayList field_74967_d = new ArrayList();
    022
    023    public ComponentNetherBridgeStartPiece(Random par1Random, int par2, int par3)
    024    {
    025        super(par1Random, par2, par3);
    026        StructureNetherBridgePieceWeight[] var4 = StructureNetherBridgePieces.getPrimaryComponents();
    027        int var5 = var4.length;
    028        int var6;
    029        StructureNetherBridgePieceWeight var7;
    030
    031        for (var6 = 0; var6 < var5; ++var6)
    032        {
    033            var7 = var4[var6];
    034            var7.field_78827_c = 0;
    035            this.primaryWeights.add(var7);
    036        }
    037
    038        this.secondaryWeights = new ArrayList();
    039        var4 = StructureNetherBridgePieces.getSecondaryComponents();
    040        var5 = var4.length;
    041
    042        for (var6 = 0; var6 < var5; ++var6)
    043        {
    044            var7 = var4[var6];
    045            var7.field_78827_c = 0;
    046            this.secondaryWeights.add(var7);
    047        }
    048    }
    049}