    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[] astructurenetherbridgepieceweight = StructureNetherBridgePieces.getPrimaryComponents();
    027        int k = astructurenetherbridgepieceweight.length;
    028        int l;
    029        StructureNetherBridgePieceWeight structurenetherbridgepieceweight;
    030
    031        for (l = 0; l < k; ++l)
    032        {
    033            structurenetherbridgepieceweight = astructurenetherbridgepieceweight[l];
    034            structurenetherbridgepieceweight.field_78827_c = 0;
    035            this.primaryWeights.add(structurenetherbridgepieceweight);
    036        }
    037
    038        this.secondaryWeights = new ArrayList();
    039        astructurenetherbridgepieceweight = StructureNetherBridgePieces.getSecondaryComponents();
    040        k = astructurenetherbridgepieceweight.length;
    041
    042        for (l = 0; l < k; ++l)
    043        {
    044            structurenetherbridgepieceweight = astructurenetherbridgepieceweight[l];
    045            structurenetherbridgepieceweight.field_78827_c = 0;
    046            this.secondaryWeights.add(structurenetherbridgepieceweight);
    047        }
    048    }
    049}