package tconstruct.world.village;
import cpw.mods.fml.common.registry.VillagerRegistry.IVillageCreationHandler;
import java.util.*;
import net.minecraft.world.gen.structure.StructureVillagePieces.PieceWeight;
import net.minecraft.world.gen.structure.StructureVillagePieces.Start;
public class VillageToolStationHandler implements IVillageCreationHandler
{
@Override
public PieceWeight getVillagePieceWeight (Random random, int i)
{
return new PieceWeight(ComponentToolWorkshop.class, 30, i + random.nextInt(4));
}
@Override
public Class<?> getComponentClass ()
{
return ComponentToolWorkshop.class;
}
@Override
public Object buildComponent (PieceWeight villagePiece, Start startPiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5)
{
return ComponentToolWorkshop.buildComponent(startPiece, pieces, random, p1, p2, p3, p4, p5);
}
}