001package net.minecraft.world.gen.structure;
002
003import java.util.List;
004import java.util.Random;
005
006public class StructureNetherBridgePieces
007{
008    private static final StructureNetherBridgePieceWeight[] primaryComponents = new StructureNetherBridgePieceWeight[] {new StructureNetherBridgePieceWeight(ComponentNetherBridgeStraight.class, 30, 0, true), new StructureNetherBridgePieceWeight(ComponentNetherBridgeCrossing3.class, 10, 4), new StructureNetherBridgePieceWeight(ComponentNetherBridgeCrossing.class, 10, 4), new StructureNetherBridgePieceWeight(ComponentNetherBridgeStairs.class, 10, 3), new StructureNetherBridgePieceWeight(ComponentNetherBridgeThrone.class, 5, 2), new StructureNetherBridgePieceWeight(ComponentNetherBridgeEntrance.class, 5, 1)};
009    private static final StructureNetherBridgePieceWeight[] secondaryComponents = new StructureNetherBridgePieceWeight[] {new StructureNetherBridgePieceWeight(ComponentNetherBridgeCorridor5.class, 25, 0, true), new StructureNetherBridgePieceWeight(ComponentNetherBridgeCrossing2.class, 15, 5), new StructureNetherBridgePieceWeight(ComponentNetherBridgeCorridor2.class, 5, 10), new StructureNetherBridgePieceWeight(ComponentNetherBridgeCorridor.class, 5, 10), new StructureNetherBridgePieceWeight(ComponentNetherBridgeCorridor3.class, 10, 3, true), new StructureNetherBridgePieceWeight(ComponentNetherBridgeCorridor4.class, 7, 2), new StructureNetherBridgePieceWeight(ComponentNetherBridgeNetherStalkRoom.class, 5, 2)};
010
011    private static ComponentNetherBridgePiece createNextComponentRandom(StructureNetherBridgePieceWeight par0StructureNetherBridgePieceWeight, List par1List, Random par2Random, int par3, int par4, int par5, int par6, int par7)
012    {
013        Class var8 = par0StructureNetherBridgePieceWeight.weightClass;
014        Object var9 = null;
015
016        if (var8 == ComponentNetherBridgeStraight.class)
017        {
018            var9 = ComponentNetherBridgeStraight.createValidComponent(par1List, par2Random, par3, par4, par5, par6, par7);
019        }
020        else if (var8 == ComponentNetherBridgeCrossing3.class)
021        {
022            var9 = ComponentNetherBridgeCrossing3.createValidComponent(par1List, par2Random, par3, par4, par5, par6, par7);
023        }
024        else if (var8 == ComponentNetherBridgeCrossing.class)
025        {
026            var9 = ComponentNetherBridgeCrossing.createValidComponent(par1List, par2Random, par3, par4, par5, par6, par7);
027        }
028        else if (var8 == ComponentNetherBridgeStairs.class)
029        {
030            var9 = ComponentNetherBridgeStairs.createValidComponent(par1List, par2Random, par3, par4, par5, par6, par7);
031        }
032        else if (var8 == ComponentNetherBridgeThrone.class)
033        {
034            var9 = ComponentNetherBridgeThrone.createValidComponent(par1List, par2Random, par3, par4, par5, par6, par7);
035        }
036        else if (var8 == ComponentNetherBridgeEntrance.class)
037        {
038            var9 = ComponentNetherBridgeEntrance.createValidComponent(par1List, par2Random, par3, par4, par5, par6, par7);
039        }
040        else if (var8 == ComponentNetherBridgeCorridor5.class)
041        {
042            var9 = ComponentNetherBridgeCorridor5.createValidComponent(par1List, par2Random, par3, par4, par5, par6, par7);
043        }
044        else if (var8 == ComponentNetherBridgeCorridor2.class)
045        {
046            var9 = ComponentNetherBridgeCorridor2.createValidComponent(par1List, par2Random, par3, par4, par5, par6, par7);
047        }
048        else if (var8 == ComponentNetherBridgeCorridor.class)
049        {
050            var9 = ComponentNetherBridgeCorridor.createValidComponent(par1List, par2Random, par3, par4, par5, par6, par7);
051        }
052        else if (var8 == ComponentNetherBridgeCorridor3.class)
053        {
054            var9 = ComponentNetherBridgeCorridor3.createValidComponent(par1List, par2Random, par3, par4, par5, par6, par7);
055        }
056        else if (var8 == ComponentNetherBridgeCorridor4.class)
057        {
058            var9 = ComponentNetherBridgeCorridor4.createValidComponent(par1List, par2Random, par3, par4, par5, par6, par7);
059        }
060        else if (var8 == ComponentNetherBridgeCrossing2.class)
061        {
062            var9 = ComponentNetherBridgeCrossing2.createValidComponent(par1List, par2Random, par3, par4, par5, par6, par7);
063        }
064        else if (var8 == ComponentNetherBridgeNetherStalkRoom.class)
065        {
066            var9 = ComponentNetherBridgeNetherStalkRoom.createValidComponent(par1List, par2Random, par3, par4, par5, par6, par7);
067        }
068
069        return (ComponentNetherBridgePiece)var9;
070    }
071
072    static ComponentNetherBridgePiece createNextComponent(StructureNetherBridgePieceWeight par0StructureNetherBridgePieceWeight, List par1List, Random par2Random, int par3, int par4, int par5, int par6, int par7)
073    {
074        return createNextComponentRandom(par0StructureNetherBridgePieceWeight, par1List, par2Random, par3, par4, par5, par6, par7);
075    }
076
077    static StructureNetherBridgePieceWeight[] getPrimaryComponents()
078    {
079        return primaryComponents;
080    }
081
082    static StructureNetherBridgePieceWeight[] getSecondaryComponents()
083    {
084        return secondaryComponents;
085    }
086}